Oracle GlassFish Server Reference Manual Release 3.1.2 Part Number E24938-01 |
|
|
View PDF |
reintializes all connections established in the specified connection pool
flush-connection-pool [--help] pool_name [--appname application [--modulename module]
The flush-connection-pool
subcommand resets a JDBC connection pool or a connector connection pool to its initial state. Any existing live connections are destroyed, which means that the transactions associated with these connections are lost. The subcommand then recreates the initial connections for the pool, and restores the pool to its steady pool size.
This subcommand is supported in remote mode only.
The flush-connection-pool
subcommand can target resources that are scoped to a specific application or module, as defined in the glassfish-resources.xml
for the GlassFish domain.
To reference the jndi-name
for an application scoped resource, perform the lookup using the java:app
prefix.
To reference the jndi-name
for a module scoped resource, perform the lookup using the java:module
prefix.
The jndi-name
for application-scoped-resources or module-scoped-resources are specified using the format java:app/
jdbc/myDataSource or java:module/
jdbc/myModuleLevelDataSource. This naming scope is defined in the Java EE 6 Specification (http://download.oracle.com/javaee/6/api/
).
--help
-?
Displays the help text for the subcommand.
--appname
Name of the application in which the application scoped resource is defined.
--modulename
Name of the module in which the module scoped resource is defined.
Name of the connection pool to be reinitialized.
This example reinitializes the JDBC connection pool named __TimerPool
.
asadmin> flush-connection-pool __TimerPool
Command flush-connection-pool executed successfully.
subcommand executed successfully
error in executing the subcommand
list-connector-connection-pools(1), list-jdbc-connection-pools(1)