How to retrieve multiple rows from database using WSO2 ESB?

前端 未结 3 1226
梦毁少年i
梦毁少年i 2021-01-16 08:10


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

3条回答
  •  抹茶落季
    2021-01-16 09:13

    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);
    


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

提交回复
热议问题