This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes how to access this remote EJB server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "how to access this remote EJB server" Watch "how to access this remote EJB server" New topic
Author

how to access this remote EJB server

Edward Chen
Ranch Hand

Joined: Dec 23, 2003
Posts: 798
I have an application server in the remote machine, say in 192.168.1.1 , how to access this remote EJB server in my coding?
Thanks.
Murali Mohan
Ranch Hand

Joined: Jul 07, 2003
Posts: 47
Clients access the remote server by passing the values of the INITIAL_CONTEXT_FACTORY and PROVIDER_URL to the InitialContext constructor through properties object.
For example code to Jrun server��..
Properties properties = new Properties();
properties.setProperty(Context.INITIAL_CONTEXT_FACTORY, "allaire.ejipt.ContextFactory");
properties.setProperty(Context.PROVIDER_URL, "ejipt://remotehost:2773");//Here ejipt is protocal , it is application server specific protocal
Context ctx = new InitialContext(properties);
Regards,
Murali
 
 
subject: how to access this remote EJB server
 
Similar Threads
EJB remote interface problem over internet
access Remote EJB from stand Alone Client
EJB Accessibility
ExecutorService
Why can't we reuse an interface for both remote and local clients?