-
1. Re: Oracle JDBC Problems
rangelot Sep 23, 2002 5:09 PM (in response to rangelot)Sorry, I'm using JBOSS 3.0 and Jetty
-
2. Re: Oracle JDBC Problems
davidjencks Sep 23, 2002 11:46 PM (in response to rangelot)For vendor specific features, you have to undo the wrapping and be careful not to get in the way of the jca implementation that is supplying the transactions, security and pooling for you.
OracleConnection oc = (OracleConnection)(((LocalConnection)ds.getConnection()).getUnderlyingConnection());
if I remembered the class names correctly. -
3. Re: Oracle JDBC Problems
ykoer Nov 21, 2002 9:09 AM (in response to rangelot)Hi David,
if I use vendor specific JDBC functions (calling stored procs with varray as parameter) I get the following error:
14:12:11,550 ERROR [LogInterceptor] TransactionRolledbackLocalException, causedBy:
java.lang.ClassCastException: org.jboss.resource.adapter.jdbc.local.LocalConnection
at oracle.sql.ArrayDescriptor.createDescriptor(ArrayDescriptor.java:87)
You wrote that I have to undo the wrapping with the following statement:
OracleConnection oc = (OracleConnection)(((LocalConnection)ds.getConnection()).getUnderlyingConnection());
I couldn't find the package with the LocalConnection Class and the getUnderlyingConnection() method.
Yusuf