3 Replies Latest reply on Jul 6, 2003 4:38 PM by kgodbole

    Default caching strategy for CMP

    kgodbole

      Hi
      I am new to CMP and I am trying to use JBoss 3.2.1 with M$ SQL server. I wanted to know if there is any default strategy used for caching query results in CM Persistance.

      The documentation mentions three read-ahead strategies :
      on-load
      on-find
      none.

      But does not mention which is the default.

      Any help will be greatly appreciated.
      Thanks

        • 1. Re: Default caching strategy for CMP
          vanitas

          Hi,

          on-load and on-find is connected with finders not caching.

          As for caching, you should set 'commit-option'. There are four commit options available: A, B, C, D. Please refer to jboss_3_2.dtd in your jboss/docs/dtd for details about them.

          greg

          • 2. Re: Default caching strategy for CMP

            IIRC on-load is the default, can't remember the page size though

            • 3. Re: Default caching strategy for CMP
              kgodbole

              Hi all
              Thank you all for your responses. I have found the default settings. They are given in a file $JBOSS_HOME/server/default/conf/standardjbosscmp-jdbc.xml

              The default read-ahead settings are as follows:
              <read-ahead>
              on-load
              <page-size>1000</page-size>
              <eager-load-group>*</eager-load-group>
              </read-ahead>


              Also the default commit options for various container configurations are given in a file called $JBOSS_HOME/server/default/conf/standardjboss.xml

              The commit settings for "Standard CMP 2.x EntityBean" configuration are :
              <commit-option>B</commit-option>


              Hope this helps someone. :-)

              --Ked