2 Replies Latest reply on Oct 14, 2009 8:19 AM by mwx.dennis

    Create Stateful Session Bean programmatically?

      I need to conditionally create a Stateful Session Bean instance. Therefore I cannot use an @EJB annotation - I'm looking for a way to do it programmatically. Ideally, I'd like to say

      MySfsbRemote newInstance = ???.create(MySfsbRemote.class);


      How can I do this? I guess I cannot use
      new MySfsb()
      ?