Have a look to https://community.jboss.org/wiki/configdatasources
How your connection are failing? Are all connections are invalid, fast-fail might help? You might use the JMX console (see Datasource pools) and invoke flush, in this case the connections are closed and the pool is new created.