• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • 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.
 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic