• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB lookups from different physical boxes

 
c hart
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We use this:

Hope it gives you some help.

------------------
Sun Certified Programmer for the Java� 2 Platform
 
Frank Xing
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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");

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic