users@glassfish.java.net

Re: How to inject EJB to Servlet Filter?

From: <glassfish_at_javadesktop.org>
Date: Fri, 16 Oct 2009 08:09:25 PDT

Does not work, too:

@EJB(name = "MyBeanHome", beanInterface = MyBeanHome.class)
public class MyFilterDispatcher extends FilterDispatcher {
   private static final Logger LOGGER = Logger.getLogger(MyFilterDispatcher.class.getName());

   @EJB(name = "MyBeanHome", beanInterface = MyBeanHome.class)
   private MyBeanHome myBean;
// ...
}
[Message sent by forum member 'hegalor' (Michael.Decker_at_MobileXAG.de)]

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