Skip Headers
Oracle® Containers for J2EE Enterprise JavaBeans Developer's Guide
10g Release 3 (10.1.3)
B14428-01
  Go To Documentation Library
Home
Go To Product List
Solution Area
Go To Table Of Contents
Contents
Go To Index
Index

Previous
Previous
Next
Next
 

Configuring BMP Commit Options

For a BMP entity bean, you can choose between commit options A and C.

Commit option A offers a performance improvement by postponing a call to ejbLoad.

If you configure a read-only BMP entity bean to use commit option A (see "Configuring a Read-Only BMP Entity Bean"), you can further improve performance by taking advantage of read-only BMP entity bean caching (see "Commit Options and BMP Applications".

Commit option C is the default.

For more information, see "What are Entity Bean Commit Options?".

Using Deployment XML

Example 15-2 shows the orion-ejb-jar.xml file entity-deployment element commit-option sub-element attribute mode. Valid settings are A and C. The number-of-buckets attribute is the maximum number of cached instances allowed and is applicable only for commit option A.

Example 15-2 orion-ejb-jar.xml For Commit Options

<entity-deployment name=EmployeeBean" location="bmpapp/EmployeeBean" >
   <resource-ref-mapping name="jdbc/OracleDS" />
   <commit-option mode="A" number-of-buckets="10" />
</entity-deployment>