aspose file tools*
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
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
Exception while doing lookup
Servlet to db connection using JNDI
How to lookup Business Interface in EJB 3.0?
Local Home JNDI Lookup Failure
linking webapp with ejb in ear