Hi,
   I have configured two machines in JBoss Cluster. I am using following code 
from machine1 for creating a bean object deployed in machine2
(Bean is deployed in both machines)

Properties properties = new Properties();
properties.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
properties.put(Context.PROVIDER_URL,remoteIP:1099);
initialContext = new InitialContext(properties);
managerHome = (ManagerHome)initialContext .lookup(jndiName);
managerRemote = (ManagerRemote)managerHome.create();

'remoteIP' is the IPAddress of 2nd machine in the cluster. But above code is 
always returning reference to the local bean. 
    Is there any setting in jboss which lookup the local bean?

Thanks.



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

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


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to