This week's book giveaway is in the Raspberry Pi forum.
We're giving away four copies of Getting started with Java on the Raspberry Pi and have Frank DelPorte on-line!
See this thread for details.
Win a copy of Getting started with Java on the Raspberry Pi this week in the Raspberry Pi forum!
  • 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Liutauras Vilda
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Piet Souris

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
 
This one time, at bandcamp, I had relations with a tiny ad.
Low Tech Laboratory
https://www.kickstarter.com/projects/paulwheaton/low-tech-0
reply
    Bookmark Topic Watch Topic
  • New Topic