2 Replies Latest reply on Feb 17, 2012 7:55 AM by jorgelojam

    Trace application

    jorgelojam

      Hi, I have problems with applications deployed into my JBoss AS, this applications start to do a lot of commits and rollbacks to database, I would like to knowif there are some way to trace or profile all call to commit or rollback events,or if there some way to implements an interceptor at application server level to detect what classes and where are this calls.

       

      Thanks in advance.

        • 1. Re: Trace application
          jbertram

          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?

          • 2. Re: Trace application
            jorgelojam

            The applications uses Hibernate as persistence engine, I believe that do not use JTA, only Hibernate as standalone