I have a CMP MDB, triggered by websphere scheduler and do some process. There is a requirement that I need to write a record in the error logging table when exception thrown from the process. But if there is exception, my transaction is rollback and so as the record in the error logging table. Is there any way I can begin another transaction in CMP?
We're pleased to have you here with us here on the ranch, but there are a few rules that need to be followed. One is that proper names are required. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.
In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious. Initials are OK for the first and middle names but not the last. You can change it here [ April 25, 2008: Message edited by: Ben Souther ]
Use the NotSupported transaction attribute for the method which is doing the logging. This will ensure that the method will never take part in a transaction. If the logging method fails, then the calling process will not be affected because its transaction will have been suspended prior to calling the logging method.