1 Reply Latest reply on Jan 24, 2006 5:44 AM by js8523

    Calling a method of another SFSB

    armita

      I need to call a method of another seam-SFSB in my seam-SFSB. How can I do it?

        • 1. Re: Calling a method of another SFSB

          Either inject the SFSB using the @In annotation and its seam name (just as you would for a Entity Object). e.g.

          
          @In(create=true)
          ISFSBbean SFSBSeamName;
          
          


          or use the @EJB annotation which is standard in the EJB3 spec.

          becareful using the seam managed one as it will create the SFSB if there isn't one already there, and this could start a conversation context variable.

          Thanks

          James