Today we will lean how to download and install Apache ActiveMQ Server and create a Queue or Topic in Apache ActiveMQ Server.
今天,我们将学习如何下载和安装Apache ActiveMQ Server以及如何在Apache ActiveMQ Server中创建队列或主题。
Apache ActiveMQ Server is the most popular and powerful open source messaging and Integration Patterns server form Apache Foundation Software.
Apache ActiveMQ Server是Apache Foundation软件中最流行,功能最强大的开源消息传递和集成模式服务器。
ActiveMQ Server website: https://activemq.apache.org/
ActiveMQ Server网站: https : //activemq.apache.org/
ActiveMQ Server have provide JMS API to integrate with Spring Framework to develop Message applications using Spring AMQP.
ActiveMQ Server提供了JMS API以与Spring Framework集成,以使用Spring AMQP开发Message应用程序。
Please use the followings steps to download and install Apache ActiveMQ Server into local system.
请使用以下步骤将Apache ActiveMQ Server下载并安装到本地系统中。
https://activemq.apache.org/download.html
https://activemq.apache.org/download.html
apache-activemq-5.9.0-bin.zip
file into local file system. 将apache-activemq-5.9.0-bin.zip
文件apache-activemq-5.9.0-bin.zip
压缩到本地文件系统中。 Apache ActiveMQ Server Home folder looks like below image:
Apache ActiveMQ Server主文件夹如下图所示:
Open Command Prompt (CMD) at Apache Active MQ bin folder:
在Apache Active MQ bin文件夹中打开命令提示符(CMD):
CMD> cd E:\apache-activemq-5.9.0\bin
Start server by using “activemq.bat” as shown below:
通过使用“ activemq.bat”启动服务器,如下所示:
E:\apache-activemq-5.9.0\bin>activemq.bat
Apache ActiveMQ server console looks like as shown below:
Apache ActiveMQ服务器控制台如下所示:
We have successfully installed Apache ActiveMQ Server. It’s time to setup required Queues or Topics to start development.
我们已经成功安装了Apache ActiveMQ Server。 现在该设置必要的队列或主题以开始开发了。
In this section, we will access Apache ActiveMQ Server admin console and create Queues or Topics.
在本节中,我们将访问Apache ActiveMQ Server管理控制台并创建队列或主题。
ActiveMQ admin console URL: https://localhost:8161/admin/
ActiveMQ管理控制台URL: https://localhost:8161/admin/
Login details: admin/admin
登录详细信息: 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
队列名称: jms/TPQueue
Click on “Create” button.
点击“创建”按钮。
Topic Name: jms/TPTopic
主题名称: jms/TPTopic
We have successfully installed and setup ActiveMQ Server with Topic or Queue.
我们已成功安装和设置带有主题或队列的ActiveMQ Server。
Now it’s time to start Developing Spring AMQP ActiveMQ Messaging Application!
现在是时候开始开发Spring AMQP ActiveMQ消息传递应用程序了!
Further Reading: Spring ActiveMQ Example
进一步阅读: Spring ActiveMQ示例