Skip Headers

# EJB CMP on OC4J

Previous

Next

When using CMP on OC4J, if you want to benefit from this performance enhancement, configure your descriptors with the default `DeferredChangeDetectionPolicy` and allow TopLink to automatically apply an `AttributeChangeTrackingPolicy`. If you configure your project's descriptors with any other change policy, TopLink will honor that configuration and not apply an `AttributeChangeTrackingPolicy`.

When you deploy a TopLink-enabled CMP application to OC4J, for each mapped class configured with the default `DeferredChangeDetectionPolicy`, TopLink uses code generation to automatically override this configuration with an `AttributeChangeTrackingPolicy` and to make the class implement the required interfaces.

Note:

The preceding information is applicable to applications built using EJB 3.0.

However, when you deploy a TopLink-enabled EJB 3.0 persistent application to OC4J, for each mapped class configured with the default `DeferredChangeDetectionPolicy`, TopLink uses bytecode weaving to automatically override this configuration with an `AttributeChangeTrackingPolicy` and to make the class implement the required interfaces.