This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jndi lookup problem in OC4J Application Server
 
Similar Threads
linking webapp with ejb in ear
Local Home JNDI Lookup Failure
Exception while doing lookup
How to lookup Business Interface in EJB 3.0?
Servlet to db connection using JNDI