1 Reply Latest reply on Jun 20, 2006 2:19 AM by Jacob Boje

    Instance variables of stateless session beans

    Philipp Taprogge Newbie

      Hello!

      This is propably a really dumb question but I am at a loss here and google has failed me.

      I'd like to know whether or not ejb3 stateless session beans' instance variables can survive from one call to the next.

      Say I have a stateless session bean that implements a webservice. One method modifies an instance variable (private to the sennion bean). Is there a chance that a subsequent call to a different method within that same bean can see the change to the variable?

      Or are they really stateless so that each and every invokation of a method finds it's bean in the exact same state?

      Many thanks for your insights,

      Phil