activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bravegag <>
Subject createTopic on the fly specifying constantPendingMessageLimitStrategy
Date Sat, 17 Oct 2009 11:35:50 GMT


I create queues on the fly meaning they get created as soon as I start
publishing messages. That's fine now the problem is that I can't find the
way to specify the constantPendingMessageLimitStrategy as I need these
queues to be of a specific size (messages should be discarded).


this does not work

String queueName = "queue01";
int queueSize = "15";
Topic topic = session.createTopic(MessageFormat.format(QUEUE_NAME_PATTERN,
queueName, queueSize));

can someone please clarify what this parameter
"consumer.constantPendingMessageLimit" name should be or if it actually
works at all to pass it during the call to session.createTopic(...)

Many thanks in advance,
Best regards,
View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message