CMP processing of transactions [转]

xiaoxiao2021-03-06  83

1) CMP is configured in ejb-jar.xml

Required

The method provided by the Entity bean is different from the previous development mode, con.sertutoCommit (false), con.Mit () is the container is automatically completed, that is, whether it is BMP or CMP, although completed in the program For the operation of the database, but in fact may not really update to the database, when updating the container and related profile decision.

2) The data source in WebLogic must be configured as TXDataSource, otherwise the transaction cannot guarantee.

转载请注明原文地址:https://www.9cbs.com/read-120496.html

New Post(0)