Hi All-
I have a question re: transactional behavior and BMP SQL Errors: (using WAS 4 BTW)
In a DAO component, after a table update, I write the record to an audit table, and if an exception occurs on the audit, the dao swallows it so as not to impact the update of the main table :
catch(Exception se)
{
//swallow this exception so audit doesn't impact the application
String msg =PREFIX+" Exception while inserting "+AUDIT_TABLE+" "+se;
logger.error(mPre+msg);
}
the EJB�s descriptor is set to ALL methods SUPPORTS:
<container-transaction>
<method>
<ejb-name>DataGroupElementFormat</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Supports</trans-attribute>
</container-transaction>
My question is:
Will a swallowed SQL exception cause a transaction rollback even though I am attempting to swallow it?
Thanks!
Max Tomlinson