之前測試jboss 的相關設定與啟動, 都是在localhost 下面作業的. 最近要在正式環境裡頭作兩個Server 的 jms bridge 時, 按照之前自己寫得 Jboss JMS Bridge (Jboss to Jboss)
設定完畢以後就只會出現 [org.hornetq.jms.bridge.impl.JMSBridgeImpl] Failed to set up JMS bridge connections. Most probably the source or target servers are unavailable. Will retry after a pause of 5000 ms . 最後試過可種可能, 終於發現 問題出在 localhost.
在開啟 jboss server 時, -b xxx.xxx.xxx.xxx . 在jboss 設定時都要用 xxx.xxx.xxx.xxx 取代 locahost. 因為, 看起來 jboss 不會認得 localhost.
沒有留言:
張貼留言