[jboss-user] [Beginners Corner] - Re: How to obtain transactions state?

weston.price@jboss.com do-not-reply at jboss.com
Tue Nov 21 14:58:49 EST 2006


The JMX console gives a limited amount of information. Typically this amounts to a few basic statistics like active transaction count, rolled back count etc. 

To really get decent information TRACE level logging should be enabled. In your log4j.xml file you should see a few entries like the following:


  |    <!-- Show the evolution of the DataSource pool in the logs [inUse/Available/Max]
  |    <category name="org.jboss.resource.connectionmanager.JBossManagedConnectionPool">
  |      <priority value="TRACE" class="org.jboss.logging.XLevel"/>
  |    </category>
  |    -->
  | 

You can enable TRACE for any category you wish, however, when it comes to transactions two categories really are important

org.jboss.resource.connectionmanager (JCA/JDBC/JMS)

org.jboss.tm (JTA/TransactionManager)

Be forwarned, this will produde quite a bit of output, so the more you can narror down the problem area after a few runs the better. Note, sometimes find it helpful to create another appender just to do TRACE level stuff to get a better read of the logs. 

Note, if you have a specific issue you can always post it to the JBoss/JCA forum.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3987702#3987702

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3987702



More information about the jboss-user mailing list