Re: Dependency injection of EJB in Servlet is not working with Jetty
Florent BENOIT <[email protected]>
| Newsgroups | gmane.comp.java.objectweb.jonas |
|---|---|
| Message-ID | <[email protected]> |
I think that external dependency injection is not yet finished with
Jetty container
Could you open an issue in the JOnAS tracker ?
Regards,
Florent
Frederic Dang Tran wrote:
> Hello:
>
> I've been using Jetty with JOnAS 5.2.0-M3 with this fix:
> http://jira.ow2.org/browse/JONAS-297
> <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
>
>
>
>
>
>
>
>