开发者

Transaction logging in JBoss 6

开发者 https://www.devze.com 2023-03-17 03:13 出处:网络
In this question: How to debug CMT transaction boundaries? some instructions are given for configuring JBoss to log transaction begin, commit etc. events. I\'m using JBoss 6, and don\'t have the fil

In this question:

How to debug CMT transaction boundaries?

some instructions are given for configuring JBoss to log transaction begin, commit etc. events. I'm using JBoss 6, and don't have the file ".../server/conf/jbossjta-p开发者_Go百科roperties.xml". Is is possible to achieve the same logging in this newer version?


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

You can find there logger category com.arjuna.ats with log level INFO. You can just change it to TRACE and check if it works for you.

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

You can find such information in log/server.log file:

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
0

精彩评论

暂无评论...
验证码 换一张
取 消