Apache ActiveMQ With Examples

Today we will lean how to download and install Apache ActiveMQ Server and create a Queue or Topic in Apache ActiveMQ Server.

Apache ActiveMQ

Apache ActiveMQ Server is the most popular and powerful open source messaging and Integration Patterns server form Apache Foundation Software.

ActiveMQ Server website: https://activemq.apache.org/

ActiveMQ Server have provide JMS API to integrate with Spring Framework to develop Message applications using Spring AMQP.

Install Apache ActiveMQ Server

Please use the followings steps to download and install Apache ActiveMQ Server into local system.

    1. Download Active MQ server latest version from website as zip file.


    1. Extract apache-activemq-5.9.0-bin.zip file into local file system.

Apache ActiveMQ Server Home folder looks like below image:

    1. Start Apache ActiveMQ server.

Open Command Prompt (CMD) at Apache Active MQ bin folder:

CMD> cd E:apache-activemq-5.9.0bin

Start server by using “activemq.bat” as shown below:


Apache ActiveMQ server console looks like as shown below:

We have successfully installed Apache ActiveMQ Server. It’s time to setup required Queues or Topics to start development.

Apache ActiveMQ Server Setup

In this section, we will access Apache ActiveMQ Server admin console and create Queues or Topics.

    1. Access ActiveMQ admin console

ActiveMQ admin console URL: https://localhost:8161/admin/

Login details: admin/admin

To view existing Queues, click on “Queues” Link.

Similarly, Click on “Topics” link to view existing Topics, “Subscribers” to view existing subscribers and “Connections” to view existing connections.

    1. Create new Queue or Topic

Queue Name : jms/TPQueue


Topic Name: jms/TPTopic

We have successfully installed and setup ActiveMQ Server with Topic or Queue.

Now it’s time to start Developing Spring AMQP ActiveMQ Messaging Application!

Further Reading: Spring ActiveMQ Example

By admin

Leave a Reply

%d bloggers like this: