• 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

RAD 7.5 jndi problem

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am stymied with a jndi problem; can anyone shed some light on it or forward it to someone who may be able to help me?

Context: in a J2ee application, I have three layers in the EJB container: Session EJB => ModelDomain object (pojo) => Entity EJB.

To access an Entity EJB from Domain Model, it needs the Local Home of the ejb; it does a context lookup to get it.

The name it looks up (in the jndi server) must be established as a Reference in the Session EJB that calls the particular Domain Model object.

I've created that reference in the Session EJB deployment descriptor file and see it in there. But it doesn't appear that the wizard of builder or whatever handles this ever actually registers it with the jndi. (In WSAD 5.1.2 when you do this same step, the ejb local ref includes an id when it is bound : <ejb-local-ref id="EJBLocalRef_1253792978067"> ). In RAD7.5, it does not include such an id.

The result is that when the program runs, the Domain Model throws an exception:
Naming Error in ModelDomainUser.getLocalHome.JNDI lookup: Name comp/env/ejb not found in context "java:".

Questions:

How can I force the Session Reference wizard to actually bind the reference in the jndi?

Can anyone see anything else that might be going wrong here?

thanks

jbs@cs.unc.edu
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic