JEE tracing

In a nonmanaged environment where the default connection manager is used, the application can set the LogWriter property on the class to define where trace messages are sent.

If the connection factory is serialized for storage in a nonmanaged environment, for the LogWriter to be used, it must be set after deserialization because it is not restored automatically after deserialization. This process is shown in the following example:
ECIManagedConnectionFactory MCF = new ECIManagedConnectionFactory();
MCF.setLogWriter(myLogWriter);

ECIConnectionFactory cf = MCF.createConnectionFactory();
objOutStream.write(cf);

ECIConnectionFactory cf2 = (ECIConnectionFactory) objInStream.read();
DefaultConnectionManager.setLogWriter(myLogWriter);

Information Information

Feedback


Timestamp icon Last updated: Wednesday, 27 August 2014


https://ut-ilnx-r4.hursley.ibm.com/tgzos_latest/help/topic/com.ibm.cics.tg.zos.doc//progguide/topics/ccla234.html