You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Julius Stroffek (JIRA)" <ji...@apache.org> on 2007/03/08 17:54:24 UTC

[jira] Commented: (DERBY-2421) implement the finalize method separately (currently, the close method is called) for both client and network drivers.

    [ https://issues.apache.org/jira/browse/DERBY-2421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12479355 ] 

Julius Stroffek commented on DERBY-2421:
----------------------------------------

If the XAConnection object is going to be garbage collected, I think It is quite safe to rollback the global transaction associated with the connection. Otherwise, the locks held by the transaction will not be released later. I think, this is not covered by the JTA spec and also not by "Distribute Transaction Processing: XA Specification". I also can not see a much sense in making a difference in behavior between embedded and network driver - so I would do the same for both.

Please correct me if I am wrong. Any other opinions?

> implement the finalize method separately (currently, the close method is called) for both client and network drivers.
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-2421
>                 URL: https://issues.apache.org/jira/browse/DERBY-2421
>             Project: Derby
>          Issue Type: Sub-task
>            Reporter: Julius Stroffek
>         Assigned To: Julius Stroffek
>
> If the garbage collection will be performed on XAConnection objects the correct cleanup have to be performed and also the roll-back of the whole global transaction should be considered and discussed here.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.