JMS Client Problem
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");
精彩评论