4 Replies Latest reply on Mar 17, 2014 3:30 AM by labo32

    Set Headers from SQL Result

    labo32 Newbie

      Hello,

       

      how can I set multiple headers from a sql result set ?

       

      <route>

        <from uri="sql:SELECT name, value FROM configtable"/>

        <split>

             <simple>${body}</simple>

                <setHeader headerName="${body[name]}">

                     <simple>${body[value]}</simple>       

                </setHeader>

        </split>

        <to uri="log:headerLog?showHeaders=true"/>

        </route>

       

      does not show any header set (result set returns 2 rows).

       

      Thanks