users
[Top] [All Lists]

oracle.sql.ArrayDescriptor

To: users@xxxxxxxxxx
Subject: oracle.sql.ArrayDescriptor
From: santosh kaushik <santoshkaushik@xxxxxxxxx>
Date: Wed, 24 Aug 2005 19:12:50 -0700 (PDT)
Delivered-to: mailing list users@cinjug.org
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=M1mRGxFhkoW55EastsrmZ5cUrFHaR29OSDL3RCYFHN7RvGd7Jcgp7ppEgflK/OMjhoVahYz7hNqeSsM+vQNVK58riJthufObAmliK40f1eLY3AuzxDs3QTSYPQxxt9WREZGuMWSi4r4fOvIot0xYWWaIqqzZRkMKFefIgxINsG4= ;
Mailing-list: contact users-help@cinjug.org; run by ezmlm

we are using jrun 4.0 application server for creating a datasource.

I get a connection from the datasource and pass it to ArrayDescriptor.



ArrayDescriptor arrayDescriptor = ArrayDescriptor.createDescriptor("obj_xyz", connection);
ARRAY array = new ARRAY(arrayDescriptor, connection, (Object[])param);

obj_xyz is the object name on the oracle side.
(Object[])param is the array of data which i want to pass it to in parameter of stored procedure

somehow oracle.sql.ArrayDescriptor doesnt like the connection given by JRun Datasource and throws a ClassCastException.

but if i create a connection in my code and pass it to ArrayDescriptor it accepts it and runs fine.

I will appreciate any help regarding this.

Thanks

Santosh

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

<Prev in Thread] Current Thread [Next in Thread>
  • oracle.sql.ArrayDescriptor, santosh kaushik <=