skip to main content
About the Driver : Using the Driver : Troubleshooting : Troubleshooting Statement Pooling : Generating an Export File with the exportStatement Method
  
Generating an Export File with the exportStatement Method
You can generate an export file by calling the exportStatements() method of the ExtStatementPoolMonitorMBean interface. For example, the following code exports the contents of the statement pool associated with the connection to a file named stmt_export:
ExtStatementPoolMonitor monitor =
((ExtConnection) con).getStatementPoolMonitor();
exportStatements(stmt_export.txt)