[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: How to flush Connection in jBoss?

PeterJ do-not-reply at jboss.com
Tue Dec 2 11:45:46 EST 2008


Try this, Using the jmx console (http://localhost:8080/jmx-console), go to the jboss.jca:name=XXX,service=ManagedConnectionPool MBean (where XXX is the datasource name). Change the pool sizes and timeout value. Then wait for the timeout and the connections should be closed. 

Also, you can set the pool sizes and timeout in the *-ds.xml file:

<datasources>
  |   <local-tx-datasource>
  |     <jndi-name>someds</jndi-name>
  |     ...
  |     <min-pool-size>10</min-pool-size>
  |     <max-pool-size>100</max-pool-size>
  |     <idle-timeout-minutes>15</idle-timeout-minutes>
  |   </local-tx-datasource>
  | </datasources>

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4193790#4193790

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4193790



More information about the jboss-user mailing list