1 Reply Latest reply on Nov 19, 2002 9:13 PM by adrian.brock

    container-cache-conf AND container-pool-conf

    vickyk

      Hi,
      This is with the reference to the discussions which were a part of the http://jboss.org/forums/thread.jsp?forum=47&thread=24840 .
      Adrian pointed out there that the bean pool is called the container pool in Jboss,to this I would like to clarify the presence of the container-pool-conf in the Stateful Option.My understanding of the EJB makes me thing that there should not be the bean pool in the Stateful Session Bean as it maintains the Data by Caching.Similarly for the Stateless Session Bean there should not be the cache pool.
      Please Clarify all this?
      Regards
      Vicky

        • 1. Re: container-cache-conf AND container-pool-conf

          Both your statements are true.

          Stateless beans have no client state, so there is
          nothing to cache. The beans are all equivalent and
          can be pooled.

          Stateful beans have a client state, it would be unwise
          to put them back into a pool.

          Entity beans have a state indepenent of the client,
          they can be cached and pooled.

          Regards,
          Adrian