[jboss-user] [EJB3] - Injecting @EJB in my own class

Ondrej Medek do-not-reply at jboss.com
Sat Feb 26 09:42:20 EST 2011

Ondrej Medek [http://community.jboss.org/people/xmedeko] created the discussion

"Injecting @EJB in my own class"

To view the discussion, visit: http://community.jboss.org/message/589843#589843


since JBoss 5.1 it is possible to inject @EJB into a Servlet or JSP, that's very nice. I would like to integrate this kind of injections into the controllers of  http://www.zkoss.org/ ZKoss framework. Shortly, these objects are created from a Servlet, i.e. they are part of WAR. And I can control their creation so I can perform an @EJB injection. Is it possible to perform somehow the same king of injection JBoss 5.1. does with @EJBs for Servlets? I'll publish my solution, if I will be sucessfull. 

I know JBoss 6.0 is out, but I do not know when we will migrate to JBoss 6.0.

Thanks very much

Reply to this message by going to Community

Start a new discussion in EJB3 at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110226/869e7d4f/attachment.html 

More information about the jboss-user mailing list