• 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

Remote Session Bean looking up a Local Entity Bean

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic