skip to main content
Troubleshooting : Troubleshooting Statement Pooling : Generating an Export File with the exportStatement Method
  

Try DataDirect Drivers Now

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)