2 Replies Latest reply on Aug 18, 2009 4:36 AM by lpiccoli.lucio.asteriski.com

    Injection of SLSB help

    lpiccoli.lucio.asteriski.com

      Hi all


      i am unable to get my SLSB to be injected into a form bean.


      I read all the threads on this topic and nothing seams to work (no pun intended).
      The only way to get the SLSB instance is thru the  Component.getInstance.


      Q. Why is this so?



      My SLSB class


      @Name(value="ITPBusiness")
      @Stateless
      @Remote(ITPBusinessRemote.class)
      @Local(ITPBusinessLocal.class)
      
      public class ITPBusinessImpl implements ITPBusiness{




      Using the Seam injection results in being null


      @Name("TestRequestForm")
      public class TestRequestFormAction
      {
         @In(required=true,value="ITPBusiness")
         ITPBusiness itpBusiness;




      Calling on Component works ok.


      itpBusiness = (ITPBusiness)Component.getInstance("ITPBusiness");
      



      Any help is  most appreciated.


      -lp