Originally posted by Rahul Mahindrakar:
Now assigning the name "java:comp/env/ejb/[bean name]"
Would mean that the name to be looked up will be
java:comp/env/java:comp/env/ejb/[bean name] since the JNDI look up starts at java:comp/env
Alright. I tried two things.
I named all my beans with the format "ejb/[bean name]" in weblogic-jar.xml
1)Then I tried to lookup the tree using the format "java:comp/env/ejb/[bean name]". It didn't work for both EJBs and Data Source.
2)I tried to lookup the tree using the format "ejb/[bean name]". Now I can find and use the
EJB and Data Source.
I can live with this approach. But I am trying to understand the context "java:comp/env". If you take a look at the link below, the J2EE blueprint code indeed looks up the JNDI tree for EJBs using the format "java:comp/env/ejb/[bean name]". How come that works?
com.sun.estore.util.JNDINames [ March 13, 2003: Message edited by: Sai Prasad ]