3.17.1. Configuration

Instrumentation is enabled using the openjpa.Instrumentation configuration property. The base value is the instrumentation provider. The alias "jmx" enables the JMX Platform MBean provider. Instruments are specified on the Instrument attribute of the provider. Multiple instruments can be specified by enclosing the value in single quotes and specifying each instrument or instrument alias as a comma separated list. For example:

            <!--  Enable caches and cache statistics -->
            <property name="openjpa.DataCache" value="true(EnableStatistics=true)"/>
            <property name="openjpa.QueryCache" value="true(EnableStatistics=true)"/>
            <property name="openjpa.jdbc.QuerySQLCache" value="true(EnableStatistics=true)"/>

            <!--  Enable jmx provider and instruments for Data, Query, and QuerySQL caches -->
            <property name="openjpa.Instrumentation" value="jmx(Instrument='DataCache,QueryCache,QuerySQLCache')"/>