Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jndi lookup problem in OC4J Application Server  RSS feed

bhupender kaur
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!