This is also another issue in using JRun 4. JRun JDBC driver wraps the real
JDBC driver. I don't know if there is a method in the wrapper that returns
the real object. Our workaround is to programatically bind the
OracleConnectionPoolDataSource to the Naming Service. So, we do not setup
JDBC data source in the JMC.

HTH,
Budi

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: 25 July 2002 02:48
> To: JRun-Talk
> Subject: ClassCastException: jrun.sql.JRunResultSet
> 
> 
> In the below given code, I am keep getting -ClassCastException:
> jrun.sql.JRunResultSet - at line 8.
> Can anybody suggest why is it throwing?
> 
> 
> 1)    String query = "SELECT XML_DATA FROM ADVT_XML WHERE
> XML_NAME='TOOLS_XML' for update";
> 3)    Connection conn = ConnectionFactory.getConnection();
> 4)    conn.setAutoCommit(false);
> 5)    PreparedStatement statement = conn.prepareStatement(query);
> 6)    ResultSet rs = (ResultSet)statement.executeQuery();
> 7)    rs.next();
> 8)    CLOB clob = ((OracleResultSet)rs).getCLOB("XML_DATA");
> 9)    OutputStream out = clob.getAsciiOutputStream();
> 
> Thanks

______________________________________________________________________
Get the JRun Web Application Construction Kit - the only book written specifically for 
JRun developers.
http://www.amazon.com/exec/obidos/ASIN/0789726009/houseoffusion
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to