aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Remote Session Bean looking up a Local Entity Bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Remote Session Bean looking up a Local Entity Bean" Watch "Remote Session Bean looking up a Local Entity Bean" New topic
Author

Remote Session Bean looking up a Local Entity Bean

Ian Beer
Greenhorn

Joined: Jan 20, 2006
Posts: 4
I have tried all manner of methods to try and look this up is WAS 5.1, all to no avail. I have tried to get the Remote Session Bean to find the Local Bean using the "java:comp/env" namespace, the "local:" namespace and WAS 5.1 inside RSA 6.0 is throwing IWAD0402E Could not perform lookup with JNDI name.

I am new to WAS and cannot find nor figure the means its JNDI is using for local and remote beans, any help would be greatly appreciated.

Thanks in advance
Roger Chung-Wee
Ranch Hand

Joined: Sep 29, 2002
Posts: 1683
Can you post your ejb-jar.xml deployment descriptor? If it contains an EJB reference to the EJB (best practice), then you should have a mapping in WAS between this reference (which you use to do your JNDI lookup) and the actual JNDI name of the referenced bean. If there is no EJB reference, then you must lookup the real JNDI name that the EJB is bound to. I am not knowledgable about WAS, but I think you will find the JNDI names of EJBs are stored in the bindings file named ibm-ejb-jar-bnd.xmi under the directory META-INF.


SCJP 1.4, SCWCD 1.3, SCBCD 1.3
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

"Big Ian"-
Welcome to the JavaRanch! Please adjust your displayed name to meet the

JavaRanch Naming Policy.

You can change it

here.

Thanks! and welcome to the JavaRanch!

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Remote Session Bean looking up a Local Entity Bean