You may be casting to oracle.jdbc.driver.OracleConnection. Try casting to
weblogic.jdbc.vendor.oracle.OracleConnection and see if it works.

-- Purush

On Tue, 16 Apr 2002 10:56:54 +0200, PEARCE TOMENIUS Zina <[EMAIL PROTECTED]> 
wrote:

>I have a problem with a Weblogic server connection pool, when used with
>Oracle driver callable statements and an Oracle thin driver. I am using the
>oracle JDBC classes to get 'Oracle object' (STRUCT and ARRAY) out parameters
>from a PLSQL procedure. I retrieve a connection from a Weblogic server
>connection pool(this connection is created by the Oracle thin driver).
>My code crashes with a class cast exception when it tries to run Oracle
>specific (OracleConnection) methods. If I run the same code outside of
>Weblogic (and get an Oracle thin driver connection straight away and not via
>a Weblogic pool), the code runs successfully.
>I imagine the class information for the connection has been lost during
>casting.
>Any idea how I can solve this? Does anyone know of methods on the
>weblogic.jdbc.pool.Connection class that will give me access to the original
>Oracle class?
>
> ==========================================================================
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff EJB-INTEREST".  For general help, send email to
>[EMAIL PROTECTED] and include in the body of the message "help".
>

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to