while using j2ee server can we call a client from another machine
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Nidhi_Madan
Posted On:   Wednesday, April 18, 2001 01:26 AM

i have written a small program for a stateless session bean. i want that i should run a client from a machine but the j2ee server should run on a different machie. if its possible, where exactly i should give the servers name in the lookup method.

Re: while using j2ee server can we call a client from another machine

Posted By:   Sergi_Arrufat  
Posted On:   Thursday, April 19, 2001 02:23 AM

All depends on the application server you are using. This is an example extracted from a jBoss client application:

System.setProperty("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
System.setProperty("java.naming.provider.url", "myhost");


javax.naming.Context jndiContext = new javax.naming.InitialContext();

Object objref = jndiContext.lookup("ejb/MyBean");

About | Sitemap | Contact