stored-proc-outbound-gateway参数和结果处理

时间:2014-10-17 14:18:01

标签: spring-integration spring-jdbc

我需要根据传入的消息调用oracle存储过程,如下所示。传入消息有一个返回in参数的方法,但我找不到将它绑定在一起的方法。

<int-jdbc:stored-proc-outbound-gateway 
            id="dbPollar"
            data-source="someDtaSource"
            request-channel="triggerChannel" 
            reply-channel="loggit"
            stored-procedure-name="somePackage.someProc">                   
            <int-jdbc:sql-parameter-definition name="rowid" direction="IN" type="ROWID"/>
            <int-jdbc:sql-parameter-definition name="error" direction="OUT" type="NVARCHAR"/>
            <int-jdbc:sql-parameter-definition name="mesage" direction="OUT" type="NVARCHAR"/>      
            <int-jdbc:returning-resultset name="ref" row-mapper="rowMapper"/>                   
</int-jdbc:stored-proc-outbound-gateway>

我的问题是如何传递in参数以及如何检索out参数。鉴于我们有单一的回复频道,它是如何工作的。我想生成一个包含out参数的输出消息,并在回复通道中有一组结果行。如果包含相关详细信息,请指出任何文档。谢谢

1 个答案:

答案 0 :(得分:1)

输出消息有效负载是由参数名称键入的Map个输出。