15.8.1. Commit Options

15.8.1. Commit Options

Central to the loading process are the commit options, which control when the data for an entity expires. JBoss supports four commit options A, B, C and D. The first three are described in the Enterprise JavaBeans Specification, but the last one is specific to JBoss. A detailed description of each commit option follows:

The commit option is declared in the jboss.xml file. For a detailed description of this file see Chapter 14, EJBs on JBoss. The following example changes the commit option to A for all entity beans in the application:

<jboss>
    <container-configurations>
        <container-configuration>
            <container-name>Standard CMP 2.x EntityBean</container-name>
            <commit-option>A</commit-option>
        </container-configuration>
    </container-configurations>
</jboss>

Example 15.2. The jboss.xml Commit Option Declaration