0 Replies Latest reply on Jan 9, 2006 1:14 PM by gmyrek

    LRU cache for stateful session beans

    gmyrek

      Hi,

      I made some investigations of how EJB container together with LRU cache of SFSB works and found out, that when calling a business method on passivated bean, a new bean instance is created. That new bean instance is actually not used for activation. Instead the old bean instance, if still exists and is not used, is reused.

      I would rather expect that first the old instance is reused (if possible) and if that does not work a new bean instance is created.

      Do I miss something or is there a reasonable explaination for this behavior.

      Thanks,
      Marek.