Folks,

Am in a position where our jms client (when instantiating the message broker)  
NEEDS to connect to one host (where the JBOSS mq queue is listening) and if 
that does not respond try and connect to another host where a similar JBOSS mq 
queue is listening.

Here is our properties file: 
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.provider.url=jnp://localhost:1099
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces

Currently, we try and connect to JMS on the localhost. This needs to change to 
accomodate for multiple hosts (two at the moment).

Do i just add the host to the "java.naming.provider.url" property like the 
example below:

"java.naming.provider.url=jnp://host1:1099 jnp://host2:1099"

Any ideas ...

Appreciate it much ...

Mo.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3882298#3882298

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3882298


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to