Using the JMS request/response pattern (Intermediate)
In this recipe we are going to take a look at a messaging pattern known as request/response messaging.
Getting ready
We will use two examples for this recipe: jms-requester and jms-responder. Together they implement a simple request/response application.
How to do it...
To run the samples for this recipe, you will need to perform the following steps:
- Open a terminal and start a broker.
- Open a second terminal, change to the directory where the jms-responder example is located, and run it by typing
mvn compile exec:java
. (You can shut down the example by pressing Ctrl + C when done or allow it to stop on its own after five minutes.) - Open a third terminal, change to the directory where the jms-requester ...
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.