You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "Balazs Zsoldos (Updated) (JIRA)" <ji...@apache.org> on 2012/04/11 14:14:17 UTC

[jira] [Updated] (ARIES-845) Support unwrap and isWrappedFor functions with older JDBC drivers in ConnectionWrapper

     [ https://issues.apache.org/jira/browse/ARIES-845?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Balazs Zsoldos updated ARIES-845:
---------------------------------

    Attachment: ConnectionWrapper.java.patch

Uploaded a patch that makes it possible to use Vendor API even when the Vendor based connection does not support the isWrappedFor or unwrap function.s
                
> Support unwrap and isWrappedFor functions with older JDBC drivers in ConnectionWrapper
> --------------------------------------------------------------------------------------
>
>                 Key: ARIES-845
>                 URL: https://issues.apache.org/jira/browse/ARIES-845
>             Project: Aries
>          Issue Type: Improvement
>          Components: Transaction
>         Environment: JDK6
>            Reporter: Balazs Zsoldos
>         Attachments: ConnectionWrapper.java.patch
>
>
> ConnectionWrapper now simply delegates the unwrap and isWrappedFor functions to the wrapped connection. It would be good if we could be sure that the JDBC driver supports these functions as it is written in the javadoc. However in postgres 9.1 or H2 these functions are not supported and it is impossible to use api from that is supported by the vendor (e.g. LargeObject API from Postgres).
> A possible solutions is:
> In these functions we check first if the wrapped connection implements the queried interface. If not we delegate the function (thinking if we wrapped a wrapper it hopefully supports these functions).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira