【发布时间】:2017-05-17 05:55:08
【问题描述】:
是否可以在运行时使用 java API 设置 ActiveMQ 传输参数,例如 maxReconnectAttempts?
就我而言,我最初是通过提供基本的故障转移 url 故障转移来创建 ActiveMQ 连接工厂:
ActiveMQSslConnectionFactory connectionFactory = new ActiveMQSslConnectionFactory("(ssl://192.168.1.112:61617,ssl://192.168.1.112:61619)?randomize=false")
但是稍后我需要为此连接工厂设置传输参数,例如maxReconnectAttempts。有可能吗?
【问题讨论】: