Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

InitialContext question  RSS feed

 
Vik Natarajan
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to get an EJB homeObject without using the META-INF(application-client.xml) EJB reference. How would I go about doing this?
I do not want to use the following
Object ref = jndiContext.lookup("java:comp/env/ejb/Interest");
I want to know if this is possible without the META-INF.
Thanks in advance
 
Dave Landers
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How about
new InitialContext(props).lookup( "global.jndi.name.for.ejb" );
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!