Re: Transaction Management in CMP through Reflection
Friday, May 17, 2002 06:31 AM
The problem has been solved using TXDataSource.
There is no problem in using reflection with CMP for transaction management.
I was using Datasource instead of TXDatasource causing the entity beans to work in auto-commit mode.
Following is found on bea site
Always Use A Transactional Datasource for Container-Managed EJBs
If you configure a JDBC datasource factory for use with container-managed EJBs, make sure you configure a transactional datasource (TXDataSource) rather than a non-transactional datasource (DataSource). With a non-transactional datasource, the JDBC connection operates in auto commit mode, committing each insert and update operation to the database immediately, rather than as part of a container-managed transaction.