1 Reply Latest reply on Aug 30, 2007 11:23 PM by waynebaylor

    instance variables and a SLSB returning to JBoss instance po

    asookazian

      what happens to the instance variables if they have already been set to a value during the client's session?

      are they cleared/nulled out? or left for the next client session with the same set values??

      Trying to understand this from a Seam/EJB3 backing bean perspective and when you should use stateless (a service) vs. stateful (conversation required) beans.

      thx.

        • 1. Re: instance variables and a SLSB returning to JBoss instanc
          waynebaylor

          if the slsb is added back to the pool its fields are probably unchanged. the spec just says that you shouldn't depend on a slsb's fields being consistent over multiple client calls (since the client is not guaranteed to have the same slsb execute each request).

          if you need to store a value across multiple client requests, then you want a stateful session bean.