336/461

## glassfish:jca:connection-pool:connectionRequestServedEvent

connection request served event

Synopsis

    glassfish:jca:connection-pool:connectionRequestServedEvent(
    java.lang.String poolName,
    java.lang.String applicationName,
    java.lang.String moduleName,
    long timeTakenInMillis)

Description

This event is sent when a request for a connection from the connector connection pool is served. The `timeTakenInMillis` parameter indicates the time required in milliseconds to service the request.

Use this event to obtain the following information:

- The wait time of the last request that was serviced by the connector connection pool

- The average wait time for successful requests for connections from the connector connection pool

Parameters

`poolName`

  The name of the connector connection pool from which the connection was served.

`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.

`timeTakenInMillis`

  The time required in milliseconds to service the last request.