是否可以在運行時使用java API設置ActiveMQ傳輸參數(例如maxReconnectAttempts
)?ActiveMQ以編程方式設置傳輸參數
在我的情況,我提供了一個基本的故障轉移URL故障最初創建的ActiveMQ連接工廠:
ActiveMQSslConnectionFactory connectionFactory = new ActiveMQSslConnectionFactory("(ssl://192.168.1.112:61617,ssl://192.168.1.112:61619)?randomize=false")
但是後來我將需要傳輸參數設置爲這個連接工廠如maxReconnectAttempts
。可能嗎?