1.下载
2.安装
3.修改配置
文件:/apache-activemq-5.18.2/conf/activemq.xml
XML
<transportConnectors>
<!-- DOS protection, limit concurrent connections to 1000 and frame size to 100MB -->
<transportConnector name="openwire" uri="tcp://0.0.0.0:61616?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
<transportConnector name="amqp" uri="amqp://0.0.0.0:5672?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
<transportConnector name="stomp" uri="stomp://0.0.0.0:61613?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
<transportConnector name="mqtt" uri="mqtt://0.0.0.0:1883?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
<transportConnector name="ws" uri="ws://0.0.0.0:61614?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
</transportConnectors>
4.浏览器访问
5.springboot使用案例
配置
XML
# active mq配置
spring:
profiles:
include: kafka
activemq:
broker-url: tcp://ip:61616 #activeMQ的ip和端口号
user: admin #activeMq账号
password: admin #activeMq密码
queue-name: testQuene #消息队列
topic-name: testTopic #消息广播
pool:
enabled: true #连接池启动
max-connections: 10 #最大连接数
#本地开发关闭jms
jms:
enable: true