Hi Fred
On Wednesday 16 January 2013 10:33 PM, Jesper Pedersen wrote:
> Hi,
>
> On 01/16/2013 10:45 AM, frowe_at_us.ibm.com wrote:
>> In order to facilitate resource adapter failover mechanisms from one
>> resource adatper to another, it is useful to be able to determine the
>> state of a connection so that if the connection has failed, a failover
>> process can be performed. Similarly, when the connection state
>> indicates that the connection is working again, an automated (or
>> manual) failback process could be initiated. One means to acheive this
>> would be to add a testConnection(...) method to the MC API allowing a
>> standard means for the app server to determine the status of a
>> connection.
>>
>
> You should use
>
> ValidatingManagedConnectionFactory::getInvalidConnections()
>
> to test the connection status.
Yes, Jesper is right. Section 6.5.3.4 covers this. Would this work for the
scenario you had suggested above? However it must be noted that support
for this interface is optional for both the RA (MCF) to implement this,
and for the AS to use this interface to get invalid connections.
Thanks
--Siva.