Apache ActiveMQ

Filed Under: JMS

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: http://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.
  2. http://activemq.apache.org/download.html

  3. Extract apache-activemq-5.9.0-bin.zip file into local file system.
  4. Apache ActiveMQ Server Home folder looks like below image:

    apache activemq home folder

  5. Start Apache ActiveMQ server.
  6. Open Command Prompt (CMD) at Apache Active MQ bin folder:

    
    CMD> cd E:\apache-activemq-5.9.0\bin
    

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

    
    E:\apache-activemq-5.9.0\bin>activemq.bat
    

    Apache ActiveMQ server console looks like as shown below:

    apache activemq server startup

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
  2. ActiveMQ admin console URL: http://localhost:8161/admin/

    Login details: admin/admin

    apache activemq homepage

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

    apache activemq server queues

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

  3. Create new Queue or Topic
  4. Queue Name : jms/TPQueue

    apache activemq create queue

    Click on “Create” button.

    activemq queue created

    Topic Name: jms/TPTopic

    apache activemq server create topic

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

Comments

  1. Nayan Arora says:

    activemq.bat won’t start the server. Instead use activemq.bat start.

  2. Vaibhav says:

    here for run activemq using folowing command

Leave a Reply

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

close
Generic selectors
Exact matches only
Search in title
Search in content
Search in posts
Search in pages