On Tuesday 24 Feb 2004 09:46 am, Thomas Chiverton wrote:
> More later :-)

There appears to be an issue with Oracle's JDBC driver and weblogic 7 (fixed
in 8 of course) that prevents the use of stored procs that return result
sets.
I was hoping to use weblogic's jdbc driver, with code like  the below, taken
from the WebLogic examples. However the registerOutParmeter fails (JDBC 3.0
method not implemented) :-(
--------------------------snip--------------------------
thingy=CreateObject('java','com.bf.common.j2ee.jdbc.JdbcConnectionFactory');
conn=thingy.getFactory().getConnection('dev_ora_resultSet');
cstmt=CreateObject('java','weblogic.jdbc.common.OracleCallableStatement');
cstmtWrong=conn.prepareCall("begin
bf_report.client_facade_pkg.get_available_reports(?, ?); end;");
wibble=CreateObject('java','com.bf.common.util.cast.CastingFactory');
cstmt=wibble.cast(cstmtWrong);
otherObj=CreateObject('java','java.sql.Types');
other=otherObj.OTHER;
cstmt.registerOutParameter(2,otherObj.OTHER);
cstmt.setString(1,'hhhhh');
cstmt.execute();
rs=cstmt.getResultSet(1);
--------------------------pins--------------------------

Solution: Use native CFMX drivers. Which is a shame :-(
I dunno if it's worth putting in on the wish list...

--
Tom Chiverton
Advanced ColdFusion Programmer

Tel: +44(0)1749 834997
email: [EMAIL PROTECTED]
BlueFinger Limited
Underwood Business Park
Wookey Hole Road, WELLS. BA5 1AF
Tel: +44 (0)1749 834900
Fax: +44 (0)1749 834901
web: www.bluefinger.com
Company Reg No: 4209395 Registered Office: 2 Temple Back East, Temple
Quay, BRISTOL. BS1 6EG.
*** This E-mail contains confidential information for the addressee
only. If you are not the intended recipient, please notify us
immediately. You should not use, disclose, distribute or copy this
communication if received in error. No binding contract will result from
this e-mail until such time as a written document is signed on behalf of
the company. BlueFinger Limited cannot accept responsibility for the
completeness or accuracy of this message as it has been transmitted over
public networks.***
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to