-
1. Re: ejb-local-ref question
raja05 Apr 15, 2004 2:26 AM (in response to lshepherd)Just checking, do you have your "ShorexTour"
EJB named in the same ejb-jar.xml!
Something like
<ejb-name>ShorexTour</ejb-name>
.....
... -
2. Re: ejb-local-ref question
lshepherd Apr 15, 2004 11:33 AM (in response to lshepherd)Yes, the entity EJB is named "ShorexTour" in the deployment descriptor.
I just wrote a test class that connects to the JNDI naming service from another JVM process. It successfully looked up the session facade and called it's methods. But when I tried to look up the local interface of the entity EJB, I got a naming exception. Which is good and what I was hoping would happen.
My guess is that JBoss will not allow the lookup of the local interface from the outside. Just wondering how it knows. -
3. Re: ejb-local-ref question
s5554 Apr 18, 2004 9:39 AM (in response to lshepherd)I have made conclusions which poin to the same direction, listing Context.list("java:/comp/env") succeeds only in a servlet, when I try it from a java-client I get javax.naming.NameNotFoundException: comp not bound
RL -
4. Re: ejb-local-ref question
raja05 Apr 20, 2004 11:33 PM (in response to lshepherd)Yes, java:comp/env is an internal representation. You cannot reference it from outside unless you have a client descriptor that resolves java:comp/env to java:/JNDIName(or whatever ur jndi is).
Im not sure how much of a progress is made on the client side descriptors in j2ee1.4 but it sure was in earlier releases.