Ok, so you mean that this code:

  |             java.util.Hashtable properties = new java.util.Hashtable();
  |             properties.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,
  |                     "org.jnp.interfaces.NamingContextFactory");
  |             properties.put(javax.naming.Context.URL_PKG_PREFIXES,
  |                     "org.jboss.naming:org.jnp.interfaces");
  |             properties.put(javax.naming.Context.PROVIDER_URL, 
"localhost:1200,localhost:1300");
  | 
  |          ic = new InitialContext(properties);
  | 
  |          cf = (ConnectionFactory)ic.lookup("/ClusteredConnectionFactory");
  | 

sometimes obtains the ClusteredConnectionFactory instance from one cluster node 
and sometimes from another one?

Is this because of the HA-JNDI behaviour?

If this is right - is there a way to choose always the node at localhost:1200? 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118734
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to