ARTICLE DETAIL

建站实战干货

来自一线的建站与推广经验沉淀,每一条都经过真实交付验证。

activeMq

2026/9/6 5:23:31 拓冰建站 浏览量
activeMq

1.下载

2.安装

3.修改配置

文件:/apache-activemq-5.18.2/conf/activemq.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&amp;wireFormat.maxFrameSize=104857600"/><transportConnector name="amqp" uri="amqp://0.0.0.0:5672?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600"/><transportConnector name="stomp" uri="stomp://0.0.0.0:61613?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600"/><transportConnector name="mqtt" uri="mqtt://0.0.0.0:1883?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600"/><transportConnector name="ws" uri="ws://0.0.0.0:61614?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600"/></transportConnectors>

4.浏览器访问

5.springboot使用案例

配置

# active mq配置
spring:profiles:include: kafkaactivemq: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 #最大连接数#本地开发关闭jmsjms:enable: true