Transaction Logging in JBoss 6

In this question:

How to debug CMT transaction boundaries?

Here are some instructions for setting up JBoss to register begin, commit, etc. events. I am using JBoss 6 and do not have the file "... / server / conf / jbossjta-properties.xml". Is it possible to achieve the same registration in this new version?

+6
source share
1 answer

You can try to set logging in jboss-logging.xml file.

You can find there the com.arjuna.ats registration com.arjuna.ats with the INFO journal level. You can simply change it to TRACE and check if it works for you.

 <logger category="com.arjuna.ats"> <level name="TRACE" /> </logger> 

You can find this information in the log/server.log :

 2011-07-04 21:58:25,861 TRACE [com.arjuna.ats.jta] (http-127.0.0.1-8080-1) BaseTransaction.getStatus 2011-07-04 21:58:25,862 TRACE [com.arjuna.ats.jta] (http-127.0.0.1-8080-1) BaseTransaction.begin 2011-07-04 21:58:25,862 TRACE [com.arjuna.ats.arjuna] (http-127.0.0.1-8080-1) StateManager::StateManager( 2, 0 ) 2011-07-04 21:58:25,862 TRACE [com.arjuna.ats.arjuna] (http-127.0.0.1-8080-1) BasicAction::BasicAction() 2011-07-04 21:58:25,863 TRACE [com.arjuna.ats.arjuna] (http-127.0.0.1-8080-1) BasicAction::Begin() for action-id 0:ffff7f000101:126a:4e121a3c:1d4 2011-07-04 21:58:25,863 TRACE [com.arjuna.ats.arjuna] (http-127.0.0.1-8080-1) BasicAction::actionInitialise() for action-id 0:ffff7f000101:126a:4e121a3c:1d4 2011-07-04 21:58:25,863 TRACE [com.arjuna.ats.arjuna] (http-127.0.0.1-8080-1) ActionHierarchy::ActionHierarchy(5) 2011-07-04 21:58:25,863 TRACE [com.arjuna.ats.arjuna] (http-127.0.0.1-8080-1) ActionHierarchy::add(0:ffff7f000101:126a:4e121a3c:1d4, 1) 2011-07-04 21:58:25,863 TRACE [com.arjuna.ats.arjuna] (http-127.0.0.1-8080-1) BasicAction::addChildThread () action 0:ffff7f000101:126a:4e121a3c:1d4 adding Thread[http-127.0.0.1-8080-1,5,jboss] 2011-07-04 21:58:25,863 TRACE [com.arjuna.ats.arjuna] (http-127.0.0.1-8080-1) BasicAction::addChildThread () action 0:ffff7f000101:126a:4e121a3c:1d4 adding Thread[http-127.0.0.1-8080-1,5,jboss] result = true 2011-07-04 21:58:25,863 TRACE [com.arjuna.ats.arjuna] (http-127.0.0.1-8080-1) TransactionReaper::insert ( BasicAction: 0:ffff7f000101:126a:4e121a3c:1d4 status: ActionStatus.RUNNING, 300 ) 2011-07-04 21:58:25,863 TRACE [com.arjuna.ats.arjuna] (http-127.0.0.1-8080-1) ReaperElement::ReaperElement ( BasicAction: 0:ffff7f000101:126a:4e121a3c:1d4 status: ActionStatus.RUNNING, 300 ) 2011-07-04 21:58:25,864 TRACE [com.arjuna.ats.jta] (http-127.0.0.1-8080-1) TransactionImple.getStatus 2011-07-04 21:58:25,864 TRACE [com.arjuna.ats.jta] (http-127.0.0.1-8080-1) TransactionImple.registerSynchronization 
+6
source

Source: https://habr.com/ru/post/891802/


All Articles