9.2.  Enable Cross Component Trace (XCT) and view trace data in XCT Log Viewer.

[Note]

Cross Component Trace (XCT) annotates the logs so that log entries that are related to a request that is serviced by more than one thread, process, or even server are identified as belonging to the same unit of work.

XCT helps identify the root cause of problems across components, which provides the following benefits:

Administration of XCT

XCT is a function built into the WebSphere Application Server log and trace framework. When enabled, XCT annotates the logs so that log entries that are related to a request that is serviced by more than one thread, process, or even server are identified as belonging to the same unit of work. Applications built using distributed architectures, such as Service Oriented Architecture, will benefit from XCT. XCT helps facilitate problem determination across multiple services on different systems.

The following list identifies the different XCT modes:

The following list identifies the various XCT request IDs:

Example below shows a log record with an XCT request ID in the log file (shown rendered in advanced format):

[3/18/11 14:50:17:391 EDT] 00000018 W UOW= source=com.ibm.somelogger.QuickLogTest
org= prod= component= thread=[WebContainer : 1] requestID=BJrcVPo+Yk4-AAAAAAA8zAA
hello world
					

Note that the request ID is shown previously on a separate line, but in the log files it is actually on the same line as the rest of the log record header.

The following list identifies qualities about the XCT log records:

The following list identifies XCT tools:

Professional hosting         Free 'Oracle Certified Expert Web Services Developer 6' Guide     Free SCDJWS 5.0 Guide