• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Name not found exception - plz help

 
Ranch Hand
Posts: 168
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

Im trying to deploy an ejb application in oracle 10g.It is getting deployed successfully.But when i try to access the bean(through some client) it is throwing "name not found" exception.It is not able to resolve JNDI name.In orion-ejb-jar.xml what is the element used for specifying jndi name?.Kindly reply me at the earliest.

Thanks in advance!

Regards,
Priya.
 
Ranch Hand
Posts: 1143
1
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Priya,
The lookup depends on the type of client. For a Web client (servlet or JSP) -- assuming the Web client and the EJB are part of the same J2EE application:

Replace EjbName with the actual name of your EJB (as defined in the "ejb-jar.xml" descriptor file)
For a stand-alone java class (that's not part of the J2EE application):

Note that the above is purely from memory. Please verify it.

Good Luck,
Avi.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic