Hi Friends,
how to call bean to bean where each bean deployed
in different jboss server running in separate machines,
Caller BEan (Stateless Session
Bean)
------------- Properties p=new Properties(); p.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory"); p.put(Context.PROVIDER_URL,"192.168.1.3:1099"); Context init=new
InitialContext(p);
com.comm.GiverHome home=(com.comm.GiverHome)init.lookup("java:comp/env/GIVER"); file://com.comm.GiverHome home =
(com.comm.GiverHome)
// PortableRemoteObject.narrow(objref,com.comm.GiverHome.class); com.comm.Giver giver=home.create(); giver.giving();
pls give the appropriate solution and give example of this probs and deployment file thank
Vijayanathan
|