• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Junilu Lacar
  • Martin Vashko
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Scott Selikoff
  • salvin francis
  • Piet Souris

RAD 7.5 jndi problem

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • 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
 
If you have a bad day in October, have a slice of banana cream pie. And this tiny ad:
Sauce Labs - World's Largest Continuous Testing Cloud for Websites and Mobile Apps
https://coderanch.com/t/722574/Sauce-Labs-World-Largest-Continuous
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!