• Post Reply Bookmark Topic Watch Topic
  • New Topic

ORB of Sun App server

 
Pallab Sen
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

Do anyone of you know how to access the ORB instance of Sun App server from the code ?

Regards,
Pallab
 
Annie Smith
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should check that in Sun app server developer guide
 
Pallab Sen
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks.

I have found the solution. The solution was to get hold of the ORB of the app server. Hence the following 2 lines did the trick.

org.omg.CORBA.ORB orb = null;
try {

javax.naming.Context jndiRootCtx = new InitialContext();
orb = (ORB)jndiRootCtx.lookup("java:comp/ORB");
}
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!