The JBoss version I am using is 4.0.3 sp1. Thanks.
These are both client side responsibilities rather than JCA.
In the first scenario, if a connection attempt fails you would code for this and attempt to acquire another connection.
In the second scenario, time elapsed on a open connection means nothing to the implementation of connection pools. Again, this is a client requirement, not one of JCA.