You should take a look at Byteman. You can write a simple script to intercept just about anything and e.g. print a stack trace. I've written scripts for entire Java EE APIs (e.g. JTA) to assist in tracking down a problem or understanding a piece of code. Are the commit and rollback operations you wishing to trace from the JDBC API, JTA API, or something else?
The applications uses Hibernate as persistence engine, I believe that do not use JTA, only Hibernate as standalone