Version 3

    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

    equals(Object)

    and

    hashCode()

    such that JBoss can correctly check whether two connections are equivalent.

     

    Otherwise

     

    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.

    e.g.

    <application-managed-security></application-managed-security>

    or one of the other strategies if you are using a JAAS login module.

     

    Related: