PROTOCOL_CAPTURE connection property  Unsuccessful connection errors

Chapter 3: Troubleshooting

pause( ) and resume( ) methods in the Capture class

The Capture class is contained in the com.sybase.jdbcx package. It contains two public methods:

Capture.pause( ) stops the capture of raw TDS packets into a file; Capture.resume( ) restarts the capture.

The TDS capture file for an entire session can become very large. If you want to limit the size of the capture file, and you know where in an application you want to capture TDS data, you can do the following:

  1. Immediately after you have established a connection, get the Capture object for the connection and use the pause( ) method to stop capturing TDS data:

    Capture cap = ((SybConnection)conn).getCapture();
     cap.pause();
    
  2. Place cap.resume( ) just before the point where you want to start capturing TDS data.

  3. Place cap.pause( ) just after the point where you want to stop capturing data.





Copyright © 2003. Sybase Inc. All rights reserved. Unsuccessful connection errors

View this book as PDF