IBM Support

How does one enable JMS client tracing in JBOSS?

Question & Answer


Question

How does one enable JMS client tracing in JBOSS?

Answer

One enables JMS client tracing in the file jboss-log4j.xml. This file exists in <JBOSS_HOME>/server/<yourservername>/conf.
 
To enable tracing:
 
1.       Create a new category for client tracing
 
e.g.
   <category name="org.jboss.jms.client">
     <priority value="TRACE" class="org.jboss.logging.XLevel"/>
     <appender-ref ref="JMS_CLIENT"/>
   </category>
 
2.       Define an Appender for the newly defined category
 
e.g.
   <appender name="JMS_CLIENT" class="org.jboss.logging.appender.DailyRollingFileAppender">
      <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
      <param name="File" value="${jboss.server.log.dir}/jmsclient.log"/>
      <param name="Append" value="false"/>
 
     
      <param name="DatePattern" value="'.'yyyy-MM-dd"/>
      <layout class="org.apache.log4j.PatternLayout">
        
         <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
      </layout>
   </appender>
 
This will enable client tracing on a server restart. The file as defined above will contain the client logs at the level defined in the category.

[{"Product":{"code":"SS6PEW","label":"IBM Sterling Order Management"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Not Applicable","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}},{"Product":{"code":"SS6PEW","label":"IBM Sterling Order Management"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Not Applicable","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}},{"Product":{"code":"SS6PEW","label":"IBM Sterling Order Management"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Not Applicable","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Historical Number

HTG3129

Document Information

Modified date:
16 June 2018

UID

swg21563998