ActiveMQ Hello World

ActiveMQ Hello World

This is simple ActiveMQ JMS example using multiple thread, concurrent, producer and consumers. Just to give idea how ActiveMQ works we will create a queue and produce message on it and consumer will consume it. Please follow steps below:

  • Create maven java project as below:


  • pom.xml:

  • Install ActiveMQ using this tutorial
  • Once installation is done start ActiveMQ server using below command


  • To find where to connect, open server console and search “tcp://” you will see as below that will be the connection point to connect ActiveMQ server. In our case we will connect to “tcp://JavaHonk:61616”


  • Java client

  • Output:


Leave a Reply

Your email address will not be published. Required fields are marked *

I am not Robot *