IBM Books

Host On-Demand J2EE Connector


Debugging Host On-Demand J2EE Connector Applets

This section describes a way to debug Host On-Demand J2EE Connector code.

Trace facility

By default, trace facility is turned off. To enable trace, Managed Connection Factory's TraceLevel property needs to be set. The value of trace levels are specified in J2HODBaseManagedConnectionFactory (please refer to Host On-Demand J2EE Connector Javadoc for more information). The possible trace level values are:

Here is an example of setting trace level for TN5250 connection by using J2HOD5250ManagedConnectionFactory.

{
  ...
  J2HOD5250ManagedConnectionFactory mcf = new J2HOD5250ManagedConnectionFactory();
  mcf.setTraceLevel(new Integer(J2HODBaseManagedConnectionFactory.RAS_TRACE_ENTRY_EXIT));
  ...
}


[ Top of Page | Previous Page| Next Page | Table of Contents]