Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Remote Session Bean looking up a Local Entity Bean

 
Ian Beer
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic