This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Websphere and the fly likes jndi lookup problem in OC4J Application Server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "jndi lookup problem in OC4J Application Server" Watch "jndi lookup problem in OC4J Application Server" New topic
Author

jndi lookup problem in OC4J Application Server

bhupender kaur
Greenhorn

Joined: Jul 21, 2008
Posts: 9
Hi Techies,

I have a small application based on ejb3. I have these files--
Entity Bean
Stateless Session Bean
Local interface

I have given the jndi lookup code in my jsp file. I have deployed the application in OC4J Application Server and its done successfully but i m getting error that the jndi name i m giving is not found. This is the lookup code

firstSessionBeanLocal local=(firstSessionBeanLocal)initialContext.lookup("ejblocal:firstEJB/firstEJBEJB.jar/firstSessionBean#sessionBean.firstSessionBeanLocal");

but it is not working. Can anyone help me.



thanks
Bhupender
 
Don't get me started about those stupid light bulbs.
 
subject: jndi lookup problem in OC4J Application Server