0 Replies Latest reply on Feb 26, 2011 9:41 AM by Ondrej Medek

    Injecting @EJB in my own class

    Ondrej Medek Apprentice



      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 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