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.
- Download Active MQ server latest version from website as zip file.
- Extract
apache-activemq-5.9.0-bin.zip
file into local file system. - Start Apache ActiveMQ server.
https://activemq.apache.org/download.html
Apache ActiveMQ Server Home folder looks like below image:
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:
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.
- Access ActiveMQ admin console
- Create new Queue or Topic
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.
Queue Name : jms/TPQueue
Click on “Create” button.
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
Please update the main article to specify
activemq start
Can Activemq be configured in cluster or load balance setup? any documentation or points you have? Thanks
activemq.bat won’t start the server. Instead use activemq.bat start.
here for run activemq using folowing command