1 Reply Latest reply on Feb 6, 2007 2:39 PM by Juha Lindfors

    EJB pooling

    J B Novice

      Hi Folks,
      Just a quick question about pooling in relation to stateless EJBS. Im having problem finding out where to it goes. Ive seen a snippet of xml that goes into standardjboss.xml and looks like this below but i dont think it is what i am looking for. All i want to do is create a pool of 50 beans at startup for a particular bean type!! Also tried looking at the xdoclet tags tp see where the property is for this and can not find it, can you configure this using xdoclet?? if so, how??

      Appreciate any help!!

      LL

      <container-configuration>
       <container-name>Standard CMP 2.x EntityBean</container-name>
       <call-logging>false</call-logging>
       <invoker-proxy-binding-name>entity-rmi-invoker</invoker-proxy-binding-name>
       <sync-on-commit-only>false</sync-on-commit-only>
       <insert-after-ejb-post-create>false</insert-after-ejb-post-create>
       <call-ejb-store-on-clean>true</call-ejb-store-on-clean>
       <container-interceptors>
       <interceptor>org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor</interceptor>
       <interceptor>org.jboss.ejb.plugins.LogInterceptor</interceptor>
       <interceptor>org.jboss.ejb.plugins.SecurityInterceptor</interceptor>
       <interceptor>org.jboss.ejb.plugins.TxInterceptorCMT</interceptor>
       <interceptor>org.jboss.ejb.plugins.CallValidationInterceptor</interceptor>
       <interceptor metricsEnabled="true">org.jboss.ejb.plugins.MetricsInterceptor<
      /interceptor>
       <interceptor>org.jboss.ejb.plugins.EntityCreationInterceptor</interceptor>
       <interceptor>org.jboss.ejb.plugins.EntityLockInterceptor</interceptor>
       <interceptor>org.jboss.ejb.plugins.EntityInstanceInterceptor</interceptor>
       <interceptor>org.jboss.ejb.plugins.EntityReentranceInterceptor</interceptor>
       <interceptor>org.jboss.resource.connectionmanager.CachedConnectionInterceptor<
      /interceptor>
       <interceptor>org.jboss.ejb.plugins.EntitySynchronizationInterceptor</interceptor>
       <interceptor>org.jboss.ejb.plugins.cmp.jdbc.JDBCRelationInterceptor</interceptor>
       </container-interceptors>
       <instance-pool>org.jboss.ejb.plugins.EntityInstancePool</instance-pool>
       <instance-cache>org.jboss.ejb.plugins.InvalidableEntityInstanceCache</instance-cache>
       <persistence-manager>org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager</persistence-manager>
       <locking-policy>org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock</locking-policy>
       <container-cache-conf>
       <cache-policy>org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy</cache-policy>
       <cache-policy-conf>
       <min-capacity>50</min-capacity>
       <max-capacity>1000000</max-capacity>
       <overager-period>300</overager-period>
       <max-bean-age>600</max-bean-age>
       <resizer-period>400</resizer-period>
       <max-cache-miss-period>60</max-cache-miss-period>
       <min-cache-miss-period>1</min-cache-miss-period>
       <cache-load-factor>0.75</cache-load-factor>
       </cache-policy-conf>
       </container-cache-conf>
       <container-pool-conf>
       <MaximumSize>100</MaximumSize>
       </container-pool-conf>
       <commit-option>B</commit-option>
      </container-configuration>
      
      


        • 1. Re: EJB pooling
          Juha Lindfors Master

          Changing the standardjboss.xml will change the pool size for all different SLSB types deployed on the server.

          You want to include a jboss.xml in your specific SLSB meta-inf directory. See the jboss/docs/dtds directory in your distribution, the elements are described there -- or check the documentation available online.