ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brice Ruth <bdr...@gmail.com>
Subject Re: Access to the underlying connection
Date Tue, 19 Apr 2005 14:39:24 GMT
I'm not familiar at all with what you're trying to do, however - why
are you using 'SimpleDataSource' and expecting back a
'SimplePooledConnection'?!

Not sure if that might be causing problems for you ... 

On 4/19/05, Richard Osbaldeston <richard.osbaldeston@wordmap.com> wrote:
> I've tried doing:
> 
> Connection conn =
> com.ibatis.common.jdbc.SimpleDataSource.unwrapConnection(connection);
> oracle.sql.ArrayDescriptor desc =
> oracle.sql.ArrayDescriptor.createDescriptor(getSchemaPrefix(schema) +
> "TY_STR_VARRAY", conn);
> oracle.sql.ARRAY array = new oracle.sql.ARRAY(desc, conn,
> relationshipTypes);
> 
> But it still throws ClassCastExceptions as the connection object is a
> dynamic proxy and not an instance of  SimplePooledConnection. Should I
> just abandon IBatis altogether now? and go with raw jdbc.
> 
> - Richard
> 
> 


-- 
Brice Ruth
Software Engineer, Madison WI

Mime
View raw message