Working with multiple queues in ApacheMQ
In the preceding section, we demonstrated sending messages using Map Message to Order Queue. Now, we can have a look at how to work with multiple queues in ApacheMQ:
- Start the Apache ActiveMQ server, and in the console, click on Queues and create two queues.
- Let us create two queues and name the queues as follows:
- Create a new Spring project with the same dependency as the first example in the chapter.
- Create a
PacktMessageListenerclass that implements the
MessageListenerinterface. The class overrides the