配置ActiveMQ连接Broker使用failover协议

来源:互联网 发布:生活的乐趣 知乎 编辑:程序博客网 时间:2024/05/17 22:48


配置ActiveMQ连接Broker使用failover协议


问题描述

当brokerUrl值中包含空格时,运行程序会报无效的URI异常。


问题分析

ActiveMQ BrokerUrl 使用java.net.URI类,所以,当使用failover:或static: 时,如果在逗号 ',' 前后加空格时,会报无效URI的异常。





引用资料

http://activemq.apache.org/configuring-transports.html


原创粉丝点击