users@connector-spec.java.net

[connector-spec-users] [jsr322-experts] Re: Destroying XAResources after completing recovery

From: Sivakumar Thyagarajan <sivakumar.thyagarajan_at_oracle.com>
Date: Mon, 21 Jan 2013 18:45:04 +0530

Hi

On Thursday 17 January 2013 09:22 PM, Jesper Pedersen wrote:
> On 01/17/2013 03:55 AM, Sivakumar Thyagarajan wrote:
>> Hi Fred
>>
>> On Tuesday 15 January 2013 06:50 PM, frowe_at_us.ibm.com wrote:
>>> When performing recovery and processing inbound messages, we get an
>>> XAResource from the resource adapter by invoking the method
>>> getXAResources(ActivationSpec[] specs). For those returned XAResource
>>> objects, what is the expected means to destroy them since there is no
>>> API method to do so?
>>
>> I assume the point here being that there is an implicit
>> Connection leak (a Connection to the EIS that was backed by the
>> XAResource and was used for recovery) as there is no indication
>> to the RA to close the XA resource (and the underlying connection).
>>
>
> The rumor is that recovery will be discussed as part of JTA 1.2 for EE 8.
>
> I want to discuss this subject too as part of that work, hence I have a
> TODO for our next spec with "Recovery lifecycle notifications".

Ok, for now let us mark this as something to be handled in a future
release. Fred, could you please raise an issue in JIRA for this, so that
we can track this?

Thanks
--Siva.

>
> As Fred points out - we can do a lot better in aligning.
>
> Best regards,
> Jesper
>