Showing posts with label Active MQ installation on Local System. Configure Mule flow with ActiveMQ. Show all posts
Showing posts with label Active MQ installation on Local System. Configure Mule flow with ActiveMQ. Show all posts

Thursday, March 17, 2016

ActiveMQ Installation and Setup on Local System and Configure with Mule Flow

  • Download the latest version of Active MQ from the below URL     http://activemq.apache.org/download.html
  • Extract the files from the ZIP file into a directory of your choice.
  • From a console window, change to the installation directory and run ActiveMQ:

     cd [activemq_install_dir]

     Where activemq_install_dir is the directory in which ActiveMQ was installed,

    e.g., C:\apache-activemq-5.13.2
  • Start the Active MQ broker (depending on ActiveMQ version):

     For ActiveMQ 5.10 onwards

     bin\activemq start
    For ActiveMQ 5.9 or older

    bin\activemq

Testing the Active MQ Installation on Local System
  • Open the administrative interface
Login: admin
Password: admin
  • Navigate to "Queues"
  • Add a queue name and click Create.
Ex. Queue Name: example
  • Queue, example, will have 0 message
  • Send test message by clicking on "Send to"
  • Now, example queue is having 1 message.        
  • Now test message is stored into “example” queue.

Configuring Active MQ broker into Mule Flow

  • Go to the JMS on your mule flow and configure the following Active MQ broker and topic name into your mule flow.
Active MQ broker: tcp://localhost:61616
Topic Name: apessentials
  • Now, go to the Active MQ the administrative interface
Login: admin
Password: admin
  • Navigate to Topics
  • Add a topic name and click Create.
Ex. Topic Name: apessentials
  • Send test message by clicking on "Send to" with respect to your topic name
  • Now test message is stored into “apessentials” topic.
  • Now, you can see the test message in the Anypoint studio console which is consumed by your mule flow.

That's it. Thank you for visiting our blog.