【发布时间】:2014-04-06 18:14:38
【问题描述】:
如何将数组作为单个有效负载发送到 jdbc:Spring Integration 的出站网关? 我正在构造一个字符串数组并将其发送到接口方法。然而,SQL 接受一个参数 ":payload",但它会因 UncategorizedSQLException 而失败。
出站网关的Sql查询如下
<int-jdbc:outbound-gateway data-source="dataSource" request-channel="requestChannel"
query="select XMLMSG from Table where SEQ_ID in (:payload)"
reply-channel="replyChannel" >
</int-jdbc:outbound-gateway>
serviceinterface.findBySequenceIds(sequenceIdStringArray);
【问题讨论】: