On 06/29/2015 12:01 PM, GregTom wrote: > I am using ActiveMQ as the JMS implementation in TomEE server. I have never > configured it, I just use the pure default configuration and it works well. > Now I would like to use delay feature for some JMS messages. I founded that > ActiveMQ has this feature: > > message.setLongProperty(ScheduledMessage.AMQ_SCHEDULED_DELAY, delayMinute * > 60000); > > But the message is not delayed at all. Probably because schedulerSupport > attribute should be set to true. How can I set this in TomEE? I don't want > to change anything on the default configuration. I only want to turn on > scheduler support. > > Can somebody help me to turn on scheduler support in ActiveMQ of TomEE? > > [I use TomEE Plus 1.7.1] > > Thank you in advance. > > > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/Enabling-scheduleSupport-tp4698334.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. >
Scheduler support is disabled by default in ActiveMQ. In order to use it you must set the property 'schedulerSupport' to true which means you will need to modify the default broker configuration, no way around that. |<broker xmlns="http://activemq.apache.org/schema/core" brokerName="localhost" dataDirectory="${activemq.data}" schedulerSupport="true"> | -- Tim Bish Sr Software Engineer | RedHat Inc. tim.b...@redhat.com | www.redhat.com twitter: @tabish121 blog: http://timbish.blogspot.com/