如何使用 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.