09-23-05 10:57 PM
We are migrating our application from Weblogic to Websphere and I am trying
to use the wrapper classes in Websphere to perform some oracle-specific call
s. When I try to use jdbcPass to construct an Oracle STRUCT, I get error :
Invocation of the <init> method on the oracle.sql.STRUCT class is not permit
ted via jdbcPass.
The code I use is:
STRUCT struct = (STRUCT) WSCallHelper.jdbcPass(STRUCT.class, WSCallHelper.C
ONSTRUCTOR,
new Object[] { descriptor, connection, values},
new Class[] {StructDescriptor.class,
Connection.class,
Object.class},
new int[]{WSCallHelper.IGNORE,
WSCallHelper.CONNECTION,
WSCallHelper.IGNORE});
I have tried this in WAS 5.1.1.6 as well as 6.0 and get the same error. Can
anyone point me in the right direction?
Note that same type of call for an ARRAY works fine using:
ARRAY array = (ARRAY) WSCallHelper.jdbcPass(ARRAY.class,
WSCallHelper.CONSTRUCTOR, new Object[] {
descriptor, connection, values},
new Class[] {ArrayDescriptor.class,
Connection.class, Object.class},
new int[]{WSCallHelper.IGNORE,
WSCallHelper.CONNECTION,
WSCallHelper.IGNORE});
[ Post a follow-up to this message ]
|