1 Reply Latest reply on Mar 13, 2008 10:58 PM by Pete Muir

    How to get several instances of a SEAM component?

    Gabriel Goïc Newbie

      Hello all


      I'm pretty new to SEAM 2.0, and facing a problem. I want to instantiate several times a Stateful EJB3 and put all theses instances in a collection. Each instance much be able to receive injected dependencies like a Hibernate Entity Manager or a Logger.


      But when doing Component.getInstance(); I access to a singleton. The new() operator doesn't allow dependencies injection.


      Is there a way to get several instances of a SFSB while performing injection? or should I not use a SEAM component nor EJB3 here?