我有一个示例流程,它通过在 SqlServer 2008R2 express 实例上调用存储过程来“选择”记录。
该流程在 Mule Studio 中按预期工作,但当部署到 Mule 独立版 3.4.0 时,调用失败并出现错误
为更新生成了一个结果集。(SQL 代码:0,SQL 状态:+ null)
使用的驱动是微软的sqljdbc4.0
有谁知道如何解决这个问题?
谢谢
<mule xmlns:quartz="http://www.mulesoft.org/schema/mule/quartz" xmlns:jdbc="http://www.mulesoft.org/schema/mule/jdbc" xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" xmlns:spring="http://www.springframework.org/schema/beans" version="CE-3.4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
http://www.mulesoft.org/schema/mule/quartz http://www.mulesoft.org/schema/mule/quartz/current/mule-quartz.xsd
http://www.mulesoft.org/schema/mule/jdbc http://www.mulesoft.org/schema/mule/jdbc/current/mule-jdbc.xsd">
<jdbc:mssql-data-source name="MS_SQL_Data_Source" user="test" password="test" url="jdbc:sqlserver://xxx;databaseName=test" transactionIsolation="UNSPECIFIED" doc:name="MS SQL Data Source"/>
<jdbc:connector name="JDBC" validateConnections="true" queryTimeout="-1" pollingFrequency="0" doc:name="JDBC" transactionPerMessage="false" dataSource-ref="MS_SQL_Data_Source"/>
<flow name="DBTestFlow1" doc:name="DBTestFlow1">
<quartz:inbound-endpoint jobName="SQL-Purge" repeatInterval="10000" responseTimeout="10000" doc:name="Quartz">
<quartz:event-generator-job/>
</quartz:inbound-endpoint>
<logger message="Starting test" level="INFO" doc:name="Logger"/>
<jdbc:outbound-endpoint exchange-pattern="request-response" queryKey="IsOOh" queryTimeout="-1" connector-ref="JDBC" doc:name="Database">
<jdbc:query key="IsOOh" value="CALL IsOOH(#[function:now],#[null])"/>
</jdbc:outbound-endpoint>
<logger message="Query Result = #[payload]" level="INFO" doc:name="Logger"/>
</flow>
</mule>