I have a situation where I need to control rollback between a database commit and a file system file writing. To do that I used a UserTransaction and managed the file writing and deleting accordinly on my own.
1. If there is a better solution please tell.... 2. I now have a slighlty addon situation where I also need to wrap this transaction in another transaction. What I need is for the outer transaction to fail if the inner (file system database) transaction fails. Nested transactions can do the trick! is that supported?