SELECT
Mule 3.3.0 を使用して、SQL Server 2008 データベースのデータに対してストアド プロシージャを実行しようとしています。
Mule のドキュメントには、Oracle でこれを行うことに関する情報があります。これが SQL Server で可能かどうかはわかりません。
これは私の Mule エンドポイント構成です
<jdbc:outbound-endpoint exchange-pattern="request-response" queryTimeout="-1" connector-ref="sqlServerConnector" queryKey="selectCoupons" doc:name="Database">
<jdbc:query key="selectCoupons" value="call sp_get_coupons()"/>
</jdbc:outbound-endpoint>
これが出力です
Root Exception stack trace:
java.sql.SQLException: The executeUpdate method must not return a result set.
at net.sourceforge.jtds.jdbc.JtdsStatement.processResults(JtdsStatement.java:603)
at net.sourceforge.jtds.jdbc.JtdsStatement.executeSQL(JtdsStatement.java:546)
at net.sourceforge.jtds.jdbc.JtdsPreparedStatement.executeUpdate(JtdsPreparedStatement.java:506)
+ 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything)
jTDS ドライバーを使用しています。JDBC クライアントでストアド プロシージャをテストすると、予想どおりの結果セットが得られました。
助言がありますか?