The pooling does not appear to be working correctly?
For a resource adapter you wrote?
In that case, you have almost certainly not implemented the ConnectionRequestInfo correctly. You must implement
such that JBoss can correctly check whether two connections are equivalent.
You are using the wrong pooling strategy. By default JBoss uses no criteria for the pooling. If you want to create connections that are not identical, e.g. you want the application to pass in the user/password and the rar does not have reauthentication support,
you have to tell JBoss about this in your -ds.xml.
or one of the other strategies if you are using a JAAS login module.