01.01.2013 Views

CICS Transaction Gateway V5 The WebSphere ... - IBM Redbooks

CICS Transaction Gateway V5 The WebSphere ... - IBM Redbooks

CICS Transaction Gateway V5 The WebSphere ... - IBM Redbooks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

11.4.2 Tracing<br />

Example 11-2 Output from dumpnamespace<br />

=============================================================================<br />

Beginning of Name Space Dump<br />

=============================================================================<br />

1 (top)<br />

...<br />

8 (top)/eis javax.naming.Context<br />

9 (top)/eis/SCSCPJA1 SCSCPJA1<br />

...<br />

57 (top)/ejbs javax.naming.Context<br />

58 (top)/ejbs/CTGTesterCCI itso.cics.eci.j2ee.testercci._CTGTesterCCIHome_Stub<br />

...<br />

Recall that we defined each connection factory’s JNDI binding path as being<br />

eis/. Example 11-2 shows our connection factory<br />

SCSCPJA1 bound with the JNDI path eis/SCSCPJA1 as specified in “Configure<br />

a connection factory” on page 297.<br />

Also recall that when we deployed the CTGTesterCCI enterprise application, we<br />

used the value of ejbs/CTGTesterCCI for the JNDI Name of our CTGTesterCCI<br />

session bean. Example 11-2 also shows the JNDI entry for our session bean.<br />

Various levels of <strong>CICS</strong> TG tracing can be enabled from <strong>WebSphere</strong>. <strong>The</strong>y are:<br />

► Java application trace<br />

► Resource adapter trace<br />

► JNI trace<br />

Java client trace<br />

<strong>CICS</strong> TG Java client tracing can be set programmatically by adding the following<br />

statements to the Java application:<br />

com.ibm.ctg.client.T.setDebugOn(true);<br />

com.ibm.ctg.client.T.setTimingOn(true);<br />

Both of these traces go to the stderr output stream, so they will appear in the<br />

standard error log file.<br />

Note: Enabling <strong>CICS</strong> TG Java client tracing in an application will enable it for<br />

all applications running in the application server, as a consequence of the<br />

static nature of the T class.<br />

Chapter 11. <strong>CICS</strong> TG and <strong>WebSphere</strong> Application Server for Windows 321

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!