Avoiding ejbStore invocations on non-modified EntityBean instances

You can configure your EntityBean instances to bypass an invocation of the ejbStore method if they have not been modified during the current transaction.

About this task

There are two options available for indicating that a particular Enterprise JavaBeans (EJB) type should only have its ejbStore method invoked if the bean has been modified during the current transaction:
  • Set an EJB environment variable within the bean's deployment descriptor
  • Have the bean implementation class implement a marker interface. This second technique is especially useful if you have a number of bean implementations that all extend a single root class; in this case you may have the root class implement the marker interface, causing all beans that extend this class to inherit the behavior as well.

Procedure


指出主題類型的圖示 作業主題



時間戳記圖示 前次更新: July 9, 2016 11:15
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=tdat_disstore
檔名:tdat_disstore.html