users@glassfish.java.net

Re: Typecast prob with the com.sun.jdbc40.connectionholder to wsjdbcconnection

From: <glassfish_at_javadesktop.org>
Date: Sat, 28 Aug 2010 03:04:50 PDT

Initially I use DataSource ds = (Datasource) ctx.lookup();
and it throws an error as "
[b]"com.sun.gjc.spi.jdbc40.connectionholder"
cannot to cast " com.com.ibm.ws.rsadapter.jdbc.WSJdbcConnection" in run time."[/b]

But now am I used com.sun.appserv.datasource and I got physical connection. But still am not able to cast the oracle connection to wsjdbcconnection. Please help me to sort out this problem.
[Message sent by forum member 'balaji45678']

http://forums.java.net/jive/thread.jspa?messageID=481204