Send JMS Object Message to ActiveMQ

In this post we are going to send a simple object message to ActiveMQ using JMS. Install ActiveMQ First install ActiveMQ as per my previous post. Start ActiveMQ as per the instructions in the previous Open the web browser and view the queues. There should be no visible queues. Create a Maven Project Create the JMSManager … Continue reading Send JMS Object Message to ActiveMQ

Advertisements

Send JMS Text Message to ActiveMQ

In this post we are going to send a simple text message to ActiveMQ using JMS. Install ActiveMQ First install ActiveMQ as per my previous post. Start ActiveMQ as per the instructions in the previous Open the web browser and view the queues. There should be no visible queues. Create a Maven Project Create the JMSManager … Continue reading Send JMS Text Message to ActiveMQ

Retrieving Local Files from a JMS Queue

In this example, we will retrieve the messages we put on the message queue in post Sending Local Files to a JMS Queue and stored them locally.Edit JMSCopier.javaAdd the retrieveFileFromJMS method to the JMSCopier class as follows:  JMSCopier.java Edit JMSCopierTest.java Add the method testRetrieveLocalFilesFromJMSQueue to the JMSCopierTest class as follows: JMSCopierTest.java Note, you will need to … Continue reading Retrieving Local Files from a JMS Queue

Sending Local files to a JMS Queue

In our next example we will send local files to a JMS Queue and then view the Queue using the console. Edit pom.xml First we need to add the dependencies for JMS as follows: pom.xml Create JMSCopier.java Next we want to create the JMSCopier.java code that will use Camel to send our local files to … Continue reading Sending Local files to a JMS Queue

Installing ActiveMQ JMS Messaging System

For our next Camel example we need to install ActiveMQ to use as a JMS Messaging System. Download ActiveMQ Download the latest version of ActiveMQ from activemq.apache.org To run on a Mac, I downloaded the apache-activemq-5.9.0-bin.tar.gz and copied it to /Applications/Development, where I expanded it to give: /Applications/Development/apache-activemq-5.9.0 Configure ActiveMQ You need to set ACTIVEMQ_HOME to point to /Applications/Development/apache-activemq-5.9.0, and set … Continue reading Installing ActiveMQ JMS Messaging System