I'm confused.
I have a Session Bean whose JNDI java:comp context contains (according to
the JNDIView from the server):
comp
env
mail
SendConfirmationMail
ejb
signon
Signon (Link -->myapp/signon
event
SignonEvent
Global JNDI Namespace
myapp
signon (class: $Proxy17)
Yet, when I try to do a lookup with the following code (called from the
bean):
InitialContext initial = new InitialContext();
Object objref = null;
try { showNames(initial, "java:comp/env"); } catch (Exception e) {}
try {
objref = initial.lookup("java:comp/env/ejb/signon/Signon");
} catch (NamingException ne) {
getLog().debug("Exception getting java:comp/env/ejb/signon/Signon. "
+ ne.getMessage());
throw ne;
}
getLog().debug("Found java:comp/env/ejb/signon/Signon);
return (SignOnHome)PortableRemoteObject.narrow(objref,
SignOnHome.class);
A NamingException is thrown. (ne.getMessage() returns null.) The call to
showNames in the above code produces the following:
java:comp
env
mail
SendConfirmationMail
That's all.
The showNames method walks the whole tree, printing all names available
starting from the second parameter to the method. This is all it shows as
available in the current context. The SendConfirmationMail environment
variable is not available in any other context, so I know I have the right
context.
What am I missing?
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user