users@glassfish.java.net

Re: Calling an EJB from a SOAP Handler

From: <glassfish_at_javadesktop.org>
Date: Thu, 21 Jun 2007 08:12:40 PDT

What kind of webservice endpoint is the SOAP handler associated with? Is it an EJB
endpoint or some other kind? The simplest thing is to declare an @EJB at the *class*-level
of the implementation class for the endpoint as follows :

// Declare a dependency on a Remote EJB within the component environment
@EJB(name="ejb/ReceivedMessageFacade", beanInterface=ReceivedMessageFacadeRemote.class)

Note that the name of this environment dependency is the same as the string
relative to java:comp/env/ in your code.
[Message sent by forum member 'ksak' (ksak)]

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