Archive

Archive for September, 2011

How to generate serialVersionUID with intellij idea (no external plugin needed)

September 16, 2011 4 comments

Select the Serializzation issues inspections:

Then use the idea tools to generate the field (click on the lamp)

Advertisements
Categories: Uncategorized

How to log transaction informations in jboss 4.2.3.GA

September 2, 2011 2 comments

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

Categories: Uncategorized