[slightly OT] ActiveMQ limiting the topic size

G

Giovanni Azua

hi all,

In the context of a school assignment I need to run multiple benchmarks in
an integration system:
Java JMS client + ActiveMQ + java JMS processor and JDBC client + Postgres

I need to dynamically create ActiveMQ Topics, this is not a problem because
as soon as a new message is published in the Topic it will be successfully
created (therefore you can skip configuring queues explicitly using xml).

However, I am having trouble satisfying the following constraints:
1-. enforce the "constantPendingMessageLimitStrategy" so that I can
parameterize my java client with the limited size for the Topic. I require
that if the consumers are not fast enough the messages are discarded and
this strategy seems to buy me that:
http://activemq.apache.org/schema/c....xsd.html#constantPendingMessageLimitStrategy

2-. The benchmarks run over multiple variations of: number of queues, queue
sizes and number of concurrent consumers. I also need to delete (or also
flush/sweep) leftover messages from previous runs.

Many thanks in advance,
Best regards,
Giovanni
 
G

Giovanni Azua

Sorry forgot to be explicit in the question:

#1 how to enforce the max queue/topic size? I have tried this without
success (the constraint seems to be ignored):
String QUEUE_NAME_PATTERN =
"milestone2-topic-{0}?constantPendingMessageLimitStrategy={1}";

#2 how to delete, sweep or flush existing Queues/Topics without having to
write a dumb consumer.

Many thanks in advance,
Best regards,
Giovanni
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top