如何使用 WSO2 ESB 从数据库中检索多行? [英] How to retrieve multiple rows from database using WSO2 ESB?

查看:30
本文介绍了如何使用 WSO2 ESB 从数据库中检索多行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想使用 wso2 esb 检索数据库中的多行.使用 dblookup 调解器我只能检索一行.建议使用 WSO2 DSS 能否请您帮我使用 DSS 完全检索 ESB 中的多行.


I want to retrieve multiple rows in a db using wso2 esb. Using dblookup mediator I am able to retreive only one row. It is suggested to use WSO2 DSS can you please help me with using DSS to retrieve multiple rows in ESB completely.

谢谢

推荐答案

我在没有 DSS 的情况下也能工作.
只需编写一个脚本中介器来调用 dblookup 或 dbreport 中介器,次数与所需行数相同.

I got it working without DSS.
just write a script mediator to call dblookup or dbreport mediator as many times as how many rows required.

var a=mc.getSequence('gett');
        a.getList().get(0).mediate(mc);
        a.getList().get(1).mediate(mc);
        a.getList().get(2).mediate(mc);


这里的gett"是我的序列,它有 3 个孩子,所以我把这三个都称为.


here 'gett' is my sequence and it has 3 child so i'm call all three.

这篇关于如何使用 WSO2 ESB 从数据库中检索多行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆