File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Oracle/OAS and the fly likes Problem JNDI lookup of EJB from other EJB in same application / jar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Oracle/OAS
Bookmark "Problem JNDI lookup of EJB from other EJB in same application / jar" Watch "Problem JNDI lookup of EJB from other EJB in same application / jar" New topic
Author

Problem JNDI lookup of EJB from other EJB in same application / jar

Chris Miles
Greenhorn

Joined: Aug 02, 2005
Posts: 13
My application is built as an EAR containing a WAR and a EJB JAR.

The JAR is deployed with ejb-jar.xml and each of my EJBs are deployed with:

<display-name>BlahEJB</display-name>
<ejb-name>BlahEJB</ejb-name>

My WAR has a web.xml with the following for each EJB:

<ejb-local-ref>
<ejb-ref-name>BlahEJB</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local-home>BlahHomeLocal</local-home>
<local>BlahLocal</local>
</ejb-local-ref>

Within my web application I can only lookup the bean with

java:comp/env/BlahEJB

Now, I want to be able to lookup this bean from another bean.

java:comp/env/BlahEJB - does not work
BlahEJB - does not work

And about 20 other combinations does not work either.

I have tried an orion-ejb-xml configuration

with the following

<session-deployment
name="BlahEJB"
location="BlahEJB"/>

and tried every combination as well with no luck.

What am I missing here?

thanks very much

Chris
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem JNDI lookup of EJB from other EJB in same application / jar