File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes EJB lookups from different physical boxes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB lookups from different physical boxes" Watch "EJB lookups from different physical boxes" New topic
Author

EJB lookups from different physical boxes

c hart
Greenhorn

Joined: Jul 26, 2001
Posts: 3
Hello all,
I have two app servers on 2 different physical boxes. I need to get the InitialContext()for an EJB in order to do a lookup on the remote interface. I am using the Borland app server and cannot find any documentation on how get the context for an EJB which is not on the localhost. Any Ideas? Thanks.
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
We use this:

Hope it gives you some help.

------------------
Sun Certified Programmer for the Java� 2 Platform
Frank Xing
Greenhorn

Joined: Jul 31, 2001
Posts: 1
We are using Weblogic, and hope this can be helpful too.

Properties p = new Properties();
p.put(Context.PROVIDER_URL,url);
p.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory);
Context ctx = new InitialContext(p);
ctx.lookup("JNDI_NAME");

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EJB lookups from different physical boxes