13.7.3. Changing/Closing/Flushing the pool

Use JMX to change the attributes on the connection pool, like so:
jboss.jca:service=JBossManagedConnectionPool,name=<jndi-name>
Then use flush() to reset the pools. flush() closes all idle connections immediately. Any connections in use are closed after the application is finished with them. New connections are then created.