aspose file tools*
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 Spring in Action this week in the Spring 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to access this remote EJB server