2 Replies Latest reply on Aug 23, 2005 5:11 AM by Thanuksha Kaviratne

    user control of invoking ejbstroe() method

    Thanuksha Kaviratne Newbie

      Is there a way to control invoking ejbStroe() method by configuring deployment descriptriors or any other method?
      I just want to stop invoking ejbStroe method after invoking a ejb finder method

        • 1. Re: user control of invoking ejbstroe() method
          Vicky Kak Master

          Well you got to see the commit options , I think I have replied to your post earlier .
          You can't control the call to the ejbStore in the deployment descriptor but can be configured in the container configuration file .
          You can search standardjboss.xml for the


          <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>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>

          commit options .
          Regards
          Vicky


          • 2. Re: user control of invoking ejbstroe() method
            Thanuksha Kaviratne Newbie

            i'm using BMP EJB's
            but when i changed standardjboss.xml according to ur reply still ejbStore is called after calling a finder method
            i have set the commit option to B in Standard BMP EntityBean container
            pls advice