配置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