CMT

Hi,

I have a stateless session bean with Container Managed Transaction.

In my ejb method, I call DAO class and the DAO class performs databas e operation.SQLException and Exception were caught in DAO class methods and thrown as application exception,DAOException.

My question is "Will the EJB container still able to rollback the transaction when an exception occured as the DAO method catches Exception also? That is, is it ok to catch Exception in class methods called from EJB method?

Thanks in advance,

[537 byte] By [ahtwoga] at [2007-10-2 5:34:41]
# 1
Hello,I think you have to use a Conection provided by the container (Connection factory). So that the transactions are committed and rolled-back by the container.RegardsSebastien Degardin.
sdegardina at 2007-7-16 1:45:23 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...