Hello,
I would like to use a java.util.logging.Logger in a transactional way, meaning that logs should be written only if the transaction is successfully committed.
I began to read some docs about Transaction Managers, XAResource, etc, but I'm not familiar at all with this domain.
Has someone some hints or ideas on how to implement this ?
Thanks in advance
If you can deal with the logger output not being written in the event of a crash then you just call the logger from an afterCompletion() hook. If you need real transactional behavour then use http://www.jboss.org/jbosstm/fileio/ to underpin the logger.