Scheduling message delivery (Advanced)
In this recipe we will learn how to schedule message delivery in ActiveMQ.
Getting ready
For this recipe, we will use the example code in the message-scheduling
project to show how you can schedule a message for later delivery. The default ActiveMQ configuration file doesn't turn on the message scheduler service. So, you will need to edit the activemq.xml
file in the conf
directory where you installed your broker and add the schedulerSupport="true"
value to the broker
XML tag, it should look something like this:
<broker xmlns="http://activemq.apache.org/schema/core" brokerName="localhost" dataDirectory="${activemq.data}" schedulerSupport="true">
How to do it...
To run the sample for this recipe, you will need ...
Get Instant Apache ActiveMQ Messaging Application Development How-to now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.