开发者

JMS Client Problem

开发者 https://www.devze.com 2023-04-04 17:32 出处:网络
When my JBoss server is down,开发者_如何学JAVA my JMS client application repeatedly tries to reconnect to the JMS server. However, after a couple of failed attempts, it connects to any other available

When my JBoss server is down,开发者_如何学JAVA my JMS client application repeatedly tries to reconnect to the JMS server. However, after a couple of failed attempts, it connects to any other available servers in the LAN. How can I avoid this ?


It can be resolved by setting the following property when creating the initial context

props.setProperty("jnp.disableDiscovery", "true");

0

精彩评论

暂无评论...
验证码 换一张
取 消