users@glassfish.java.net

Re: RE: How to inject EJB to Servlet Filter?

From: <glassfish_at_javadesktop.org>
Date: Fri, 16 Oct 2009 08:24:26 PDT

OpenEJB support EJB in Servler Filter:
http://openejb.apache.org/3.0/injection-of-other-ejbs-example.html

Several components in Java EE can use the @EJB annotation, such as:

    * Servlets
    * ServletContextListeners
    * Servlet Filters
    * JSF managed beans
    * EJB interceptors
    * JAX-WS service endpoints


WebLogic, too: http://download.oracle.com/docs/cd/E11035_01/wls100/webapp/annotateservlet.html

Table 8-1 Web Components and Interfaces Supporting Annotations and Dependency Injection
Component Type
        
Interfaces
Servlets
        
javax.servlet.Servlet
Filters
        
javax.servlet.Filter
Listeners
        
javax.servlet.ServletContextListener
javax.servlet.ServletContextAttributeListener
javax.servlet.ServletRequestListener
javax.servlet.ServletRequestAttributeListener
javax.servlet.http.HttpSessionListener
javax.servlet.http.HttpSessionAttributeListener
Tag handlers
        
javax.servlet.jsp.tagext.SimpleTag
javax.servlet.jsp.tagext.BodyTag

And GlassFish?
[Message sent by forum member 'hegalor' (Michael.Decker_at_MobileXAG.de)]

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