Home > My Work > How to log transaction informations in jboss 4.2.3.GA

How to log transaction informations in jboss 4.2.3.GA

You have to change two files:

1: jbossjta-properties.xml (for logging more info at arjuna level)

from:

...
<property name="com.arjuna.common.util.logging.DebugLevel"
            type="System" value="0x00000000">
...

to:

...
<property name="com.arjuna.common.util.logging.DebugLevel"
            type="System" value="0xffffffff">
...

2: jboss-log4j.xml (to configure log4j) adding the following lines

...
   <category name="com.arjuna">
      <priority value="DEBUG"/>
   </category>

  <category name="org.jboss.tm">
      <priority value="DEBUG"/>
   </category>

  <category name="org.jboss.resource">
      <priority value="TRACE"/>
   </category>
...

to filter log and show which resources was enlisted in a specific transaction, we can use a command like this:
grep -a “7f000101:c2ab:4e65eaa4:1eb” server.log | grep -a Enlisting

Advertisements
Categories: My Work
  1. September 2, 2011 at 1:59 pm

    Da 0x00000000 a 0xffffffff? Come hai fatto a non arrivarci da solo?

    • germanogiudici
      September 2, 2011 at 2:19 pm

      simpatici no?

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: