10 Statement Pool Monitor : Generating a Statement Pool Export File

Generating a Statement Pool Export File
You may want to generate an export file in the following circumstances:
■
To import statements to the statement pool as described in “Importing Statements into a Statement Pool”. You can create an export file, edit its contents, and import the file into the statement pool to import statements to the pool.
■
To generate a statement pool export file, use 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");
See “Statement Pool Export File Example” for information on interpreting the contents of an export file.