[jboss-user] [JBoss Messaging] - Re: unable to choose a default cluster node for messaging

bodrin do-not-reply at jboss.com
Thu Jan 10 11:12:45 EST 2008


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



More information about the jboss-user mailing list