Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

Take the EJB container DefaultStatefulContainer as an example. By looking into config.xml, you can see the container is defined as follows:

Code Block
xmlxml
titleconfig.xml
xml
    ...  
      <gbean name="DefaultStatefulContainer">
            <attribute name="timeout">${StatefulTimeout}</attribute>
            <attribute name="capacity">${Capacity}</attribute>
            <attribute name="bulkPassivate">${BulkPassivate}</attribute>
       </gbean>
...

All these values are set as system variables in config-substitutions.properties file under the same directory as config.xml.

xml
Code Block
xml
titleconfig-substitutions.properties
xml
    ...  
      Capacity=1000
      StatefulTimeout=20
      BulkPassivate=100
 ...

If you want to configure any of the properties, change the numbers in config-substitutions.properties or update config.xml after the server is stopped. Here is an example that updates config.xml directly:

xml
Code Block
xml
titleconfig.xml
xml
    ...  
      <gbean name="DefaultStatefulContainer">
            <attribute name="timeout">${StatefulTimeout}</attribute>
            <attribute name="capacity">500</attribute>
            <attribute name="bulkPassivate">${BulkPassivate}</attribute>
       </gbean>
 ...

...