This week's book giveaway is in the Beginning Java forum.
We're giving away four copies of Learn Java with Math: Using Fun Projects and Games and have Ron Dai on-line!
See this thread for details.
Win a copy of Learn Java with Math: Using Fun Projects and Games this week in the Beginning Java 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 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

Remote Session Bean looking up a Local Entity Bean

 
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
 
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.
 
ranger
Posts: 17344
11
Mac IntelliJ IDE 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
 
Is that a spider in your hair? Here, threaten it with 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!