Now I understand the logic. However, I am facing a problem in clustered 
environment having two nodes when using the default cluster-service.xml file. I 
am able to successfully make two nodes in cluster.

I am running a client application that invokes a stateful bean and everything 
is working fine when I use the following code:

props.put("java.naming.factory.initial", 
"org.jnp.interfaces.NamingContextFactory"); 
props.put("java.naming.provider.url", "localhost:1100"); 
props.put("java.naming.factory.url.pkgs", 
"org.jboss.naming:org.jnp.interfaces"); 

My test is to fail over the node so that the other node will serve the client. 
so, as per the document I changed url to

props.put("java.naming.provider.url", "<currentnodeip1>:1100,<another 
nodeip2>:1100"); But, after shutting down the server the client is also dying. 

The client could not even connect to the A/S when I changed the url to
props.put("java.naming.provider.url", "<currentnodeip1>:1100"); 

I am very confused as I am using the default configruation xml file. Please 
help me out.



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

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

Reply via email to