I will be better to start the Transactions in the EJB because
If you have to insert data in two different tables in one transaction, and you are using two different DAOs for those two tables, then its better to start the transaction in the EJB, call the two DAOs in the same transaction..
Also, it is better on rely on CMT unless you explicitly need the control of the transactions to yourself...
But as Paul mentioned, might not always be the case...
posted 11 years ago
Good point Rahul .Thanks.
If you want something you never had do something which you had never done
First, you drop a couch from the plane, THEN you surf it. Here, take this tiny ad with you: