For entity beans that use bean-managed persistence, you can mark business methods that do not modify data. Doing so allows EAServer to skip calls to the ejbStore method after the business method returns. Performance improves through elimination of redundant database updates. Set this property using the Read Only option in the EAServer Method Properties dialog box. If using jagtool, set the method property com.sybase.jaguar.method.flags.
Read-only methods in CMP entity beans
When using EJB CMP entity beans, the persistence engine detects
read-only method invocations. You do not need to set the Read Only
method property. The ejbStore method is always
called, but never performs data storage.
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |