users@glassfish.java.net

Calling Session Bean from WebService handler

From: <glassfish_at_javadesktop.org>
Date: Mon, 24 Mar 2008 10:06:35 PST

We have a handler for a session bean based web service.

We'd like the handler to call a Session Bean.

But it appears that the local JNDI tree isn't initialized for the Handler, so we can't make any local SB calls.

When we have a class that wants to call a session bean, we make sure that the session bean that invokes the class has the correct @EJB annotation. But this doesn't seem to work with WebService handlers.

At this point we're looking at a remote SB call, but I wanted to make sure we weren't missing something else. Kind of silly to have to make a remote SB call at this layer, IMHO.
[Message sent by forum member 'whartung' (whartung)]

http://forums.java.net/jive/thread.jspa?messageID=265532