Re: Transaction in Stateless Session Bean using SQL
Posted By:
Gautam_Marwaha
Posted On:
Wednesday, July 17, 2002 04:21 AM
make sure x() is a transactional method in the deployment descriptor. Further, insertRecord and deleteRecord methods shd throw SQLException for x() to catch. In the catch block of SQLException in x(), mark the txn for rollback (using sessionContext.rollbackOnly() method)