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

    Calling a method of another SFSB

    blalls asdsd Novice

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

          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