The PROTOCOL_CAPTURE connection property has been enhanced to
avoid output file name collisions.
In the earlier versions of jConnect when PROTOCOL_CAPTURE was enabled, the capture file
would not be generated if a file with specified name already existed. For
example:
prop.setProperty("PROTOCOL_CAPTURE", "/tmp/cap.tds");
If the /tmp/cap.tds file already existed, then no protocol capture
was performed for the current session and jConnect silently ignored the request to
perform protocol capture.
Starting with version 15.7 SP127, jConnect will append timestamp to the requested
capture filename if the requested filename already exists to avoid name collision. For
example:
prop.setProperty("PROTOCOL_CAPTURE", "/tmp/cap.tds");
If
the
/tmp/cap.tds file does not exist in
/tmp
folder, then a new file
/tmp/cap.tds is created.
If the
/tmp/cap.tds file exists, then a new file is created with a
filename and timestamp
/tmp/cap_2014-04-07_11.11.54.655.0.tds.
Note: If multiple files
with name starting with the requested output name exist, you will need to review the
timestamp and the traffic to correlate the capture files to your
sessions.