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

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=13273202#comment-13273202 ] 

Holly Cummins commented on ARIES-845:
-------------------------------------

More generally, the ConnectionWrapper fails the animal-sniffer build stage (and thus can't use the 1.0.0 parent at the moment) because it calls methods which are only on the java 6 version of the Connection interface. 
                
> 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