您的位置:首页 > 其它

ActiveMQ5.0实战一: 安装配置ActiveMQ5.0

2012-03-01 11:34 183 查看


ActiveMQ5.0实战一: 安装配置ActiveMQ5.0

博客分类:

java

ActiveMQ JMS IBM Spring 应用服务器

/**
*作者:andyao,email:andyaoy@gmail.com
*/article/4480555.html
*/
ActiveMQ5.0实战二: 基本配置
ActiveMQ5.0实战三:使用Spring发送,消费topic和queue消息


简介

ActiveMQ 是开源的JMS实现,Geronimo应用服务器就是使用的ActiveMQ提供JMS服务。ActiveMQ5.0相比以前版本提供了一些非常有用的新功能:

AMQ Message Store (Faster Persistence!)

Cursors (To handle very large number of stored messages)

Blob Messages

Command Agent

Enterprise Integration Patterns via Camel Integration

Logging a warning if you forget to start a Connection

Message Transformation

Mirrored Queues

Flow Control

鉴于目前关于ActiveMQ5.0的文章比较少,故准备写一系列ActiveMQ的使用方面的文章。本篇先从安装开始。


安装

http://activemq.apache.org/download.html 下载5.0.0发行包,解压到需要安装ActiveMQ的文件夹,记为/path/to/activemq。

unix环境activemq文件夹需要执行权限,执行如下命令 chmod -R 755 /path/to/activemq


启动

window环境运行/path/to/activemq/bin/activemq.bat

unix环境运行/path/to/activemq/bin/activemq


测试

ActiveMQ默认使用的TCP连接端口是61616, 通过查看该端口的信息可以测试ActiveMQ是否成功启动

window环境运行 netstat -an|find "61616"

unix环境运行netstat -an|grep 61616


监控

ActiveMQ5.0版本默认启动时,启动了内置的jetty服务器,提供一个demo应用和用于监控ActiveMQ的admin应用。

admin:http://127.0.0.1:8161/admin/

demo:http://127.0.0.1:8161/demo/

点击demo应用中的“ Market data publisher ”,就会发一些测试的消息。转到admin页面的topics menu下面(queue和topic的区别见 /article/4480554.html ),可以看到消息在增长。




配置

ActiveMQ5.0的配置文件在/path/to/activemq/conf目录下面。主要配置文件为activemq.xml,具体的配置将在后续文章中详细说明。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: