0 Replies Latest reply on Sep 20, 2006 5:07 AM by stephan opitz

    remote access: save stateful ejb ref in stateful ejb

    stephan opitz Newbie

      i have a stateful ejb called session which reference i save in the httpSession of my application

      in the session i have the object
      private ActProductInfo actProductInfo = new ActProductInfo();

      actual if i use remote access to my ejb this object is never filled

      so i had the idea to make ActProductInfo as stateful session ejb too,

      but if i use dependency injection
      private @EJB ActProductInfo actProductInfo;

      it will be injected every time new statful ejb ActProductInfo with origin init values

      so how i can inject a stateful ejb in a statful and do not loose reference to it