1 2 Previous Next 26 Replies Latest reply on Jan 14, 2013 10:31 AM by Nicklas Karlsson

    Session bean injection

    ran haim Newbie


      I am trying to inject a session bean into another session bean (in this preticular case its the same session bean), and i get this error:

      org.jboss.weld.exceptions.UnsatisfiedResolutionException: WELD-001308 Unable to resolve any beans for Types: [interface com.windriver.dsm.labmanagement.ejb.stub.GeneralSession]; Bindings: [@javax.enterprise.inject.New(value=com.windriver.dsm.labmanagement.ejb.stub.GeneralSession.class)]


      this is  how I am trying to do that:








      public class GeneralSessionBean extends CRUDSessionBase




                @Inject @New

                Instance<GeneralSession> generalSessionInstance;




      I get the error when I call generalSessionInstance.get();


      can someone help?

        1 2 Previous Next