Apache ActiveMQ

陈淳
2023-12-01

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 (Apache ActiveMQ)

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应用程序。

安装Apache ActiveMQ服务器 (Install Apache ActiveMQ Server)

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

请使用以下步骤将Apache ActiveMQ Server下载并安装到本地系统中。

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

    从网站以zip文件下载Active MQ服务器最新版本。
  2. https://activemq.apache.org/download.html

    https://activemq.apache.org/download.html

  3. Extract 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压缩到本地文件系统中。
  4. Apache ActiveMQ Server Home folder looks like below image:

    Apache ActiveMQ Server主文件夹如下图所示:

  5. Start Apache ActiveMQ server.

    启动Apache ActiveMQ服务器。
  6. 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。 现在该设置必要的队列或主题以开始开发了。

Apache ActiveMQ服务器设置 (Apache ActiveMQ Server Setup)

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

在本节中,我们将访问Apache ActiveMQ Server管理控制台并创建队列或主题。

  1. Access ActiveMQ admin console

    访问ActiveMQ管理控制台
  2. 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.

    同样,单击“主题”链接以查看现有主题,单击“订户”以查看现有订户,单击“连接”以查看现有连接。

  3. Create new Queue or Topic

    创建新的队列或主题
  4. 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示例

翻译自: https://www.journaldev.com/11766/apache-activemq

 类似资料:

相关阅读

相关文章

相关问答