Chapter 8 Creating J2EE Applications for BEA WebLogic


isModified() Not Required for CMP Beans

The isModified() method is no longer required for CMP entity EJBs based on the EJB 2.0 specification. When you deploy EJB 2.0 entity beans with container-managed persistence, WebLogic Server automatically detects which EJB fields have been modified during a transaction, and writes only those fields to the underlying datastore.

You can still use isModified() for entity EJBs in the EJB 2.0 container that use bean-managed persistence and CMP. However, we recommend that you use tuned CMP 1.1 updates instead. For more information on tuned CMP 1.1 updates, see is-modified-method-name.

 


Copyright (C) 2005. Sybase Inc. All rights reserved.