У меня есть следующая полезная нагрузка JSON:
{
"customers": [
{
"id": "..."
"name": "...",
"surname": "...",
"address": "..."
}
]
}
Мне нужно выполнить итерацию для каждого идентификатора, имени, адреса ... поэтому я установил посредник Iterate следующим образом:
<iterate attachPath="json-eval($.customers)" expression="json-eval($.customers)" id="custom" preservePayload="true">
<target>
<sequence>
<call>
<endpoint>
<http method="post" uri-template="my-service-here"/>
</endpoint>
</sequence>
</target>
</iterate>
<aggregate id="custom">
<completeCondition>
<messageCount max="-1" min="-1"/>
</completeCondition>
<onComplete expression="json-eval($)">
<log level="full"/>
</onComplete>
</aggregate>
Но он просто застрянет и выдаст следующее предупреждение, независимо от конечной точки или последовательности итераций:
WARN {org.apache.synapse.transport.passthru.SourceHandler} - Connection time out after request is read: http-incoming-3 Socket Timeout : 180000 Remote Address : /127.0.0.1:52172
Заранее спасибо!