377/461

## glassfish:jdbcra:statementleak:potentialStatementLeakEvent

SQL statement leaked event

Synopsis

    glassfish:jdbcra:statementleak:potentialStatementLeakEvent(
    java.lang.String poolName,
    java.lang.String applicationName,
    java.lang.String moduleName)

Description

This event is sent whenever an SQL statement acquired by an application is not returned within the amount of time specified by the `sql-trace-listeners` attribute of the JDBC connection pool. If the `sql-trace-listeners` attribute has the value zero, statement-leak checking is not performed and this event is not sent.

Use this event to track the number of SQL statement leaks in an application.

Parameters

`poolName`

  The name of the JDBC connection pool.

`applicationName`

  The name of the application in which the connection pool is defined. This parameter is applicable only for application-scoped resources.

`moduleName`

  The name of the application module in which the connection pool is defined. This parameter is applicable only for application-scoped resources.