Dependency injection of EJB in Servlet is not working with Jetty
Frederic Dang Tran <[email protected]>
| Newsgroups | gmane.comp.java.objectweb.jonas |
|---|---|
| Message-ID | <[email protected]> |
Hello:
I've been using Jetty with JOnAS 5.2.0-M3 with this fix:
http://jira.ow2.org/browse/JONAS-297
I've just realized that dependency injection of an EJB into a Servlet is no longer working:
public class FoobarServlet extends HttpServlet {
@EJB
private MyBeanLocal myBean;
myBean is null !
Same behavior whether the onDemand option is turned on or not.
No exception or relevant messages in the JOnAS log.
The injection works when I fall back to Tomcat.
Did I forget something in the configuration ?
Regards,
Frederic Dang Tran