• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JDriver for Oracle

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
I'm using WebLogic's JDriver: weblogic.jdbc.oci.Driver, which uses the Oracle's native OCI driver underneath. In other words the (Oracle)CallableStatement object has to pass through WebLogic's driver (layer).
The following code:
statement = (OracleCallableStatement)connection.prepareCall ( delSql ) ;
causes an exception :
***** java.lang.ClassCastException:
weblogic.jdbc.rmi.SerialCallableStatement. *****
Can anyone suggest a way by which I can use the OracleCallableStatement in conjunction with the Weblogic JDriver? Code example will be greatly appreciated
Thanks in Advance.
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just out of curiosity. Why is it better to use Weblogic's wrapper driver than Oracle's own OCI driver, or Oracle's thin driver?
And why don't you cast it to SerialCallableStatement rather than OracleCallableStatement. Because it looks as though there is no relation between the actual classes, and one doesn't take the other as a parameter to the constructor class. Do they share any interfaces that you might be able to cst it to that actually is the source of the methods you want rather than the actual class type.
Just suggestions, without knowing anything on those two classes.
Mark
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic