配置ActiveMQ连接Broker使用failover协议
问题描述
当brokerUrl值中包含空格时,运行程序会报无效的URI异常。
问题分析
ActiveMQ BrokerUrl 使用java.net.URI类,所以,当使用failover:或static: 时,如果在逗号 ',' 前后加空格时,会报无效URI的异常。
引用资料
http://activemq.apache.org/configuring-transports.html
配置ActiveMQ连接Broker使用failover协议
问题描述
当brokerUrl值中包含空格时,运行程序会报无效的URI异常。
问题分析
ActiveMQ BrokerUrl 使用java.net.URI类,所以,当使用failover:或static: 时,如果在逗号 ',' 前后加空格时,会报无效URI的异常。
引用资料
http://activemq.apache.org/configuring-transports.html