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.