1 Reply Latest reply on Sep 30, 2011 1:11 PM by Jason Porter

    Equivalent to @Factory in Seam3

    b jj Newbie

      I trying to migrate my project from Seam2 to Seam3. I did not get an equivalent for @Factory. @Produces and @Unwraps are quite different than @Factory.

      Please suggest an equivalent for  @Factory annotation, so that it creates an instance only once.


        • 1. Re: Equivalent to @Factory in Seam3
          Jason Porter Master

          You have to scope it correctly for it to only be called one. It will be called once per scope. If it's session scoped, it will be called once per session, conversation scoped once per conversation. If there isn't a scope, that means it's DependentScoped which is very similar (to think about) use the new keyword.