ActiveMQ in Spring
Using ActiveMQ in Spring
I just want to put this diagram here so that this can be referenced if needed in the future. If you are planning on using Spring to interact with ActiveMQ, then you will be using something called JmsTemplate
. This class essentially simplifies the interaction with the JMS API (behind the scene there is resource adapter that eventually calls the ActiveMQ driver call to connect to the ActiveMQ instance from the JMS API Source).
You just need to worry about the JMS API which you can use to send and receive messages from the message broker easily, without actually invoking the ActiveMQ classes. It is unified into one interface for you to interact with many different kind of JMS providers.
I will only be going over how to use JmsTemplate
because there is really no need to interactive with the actual ActiveMQ implementations. Unless you're curious...
No Comments