Skip to content

Instantly share code, notes, and snippets.

@ricston-git
Created September 7, 2016 09:13
Show Gist options
  • Save ricston-git/4b31bbba400dfdafa03bda7ba3c8554e to your computer and use it in GitHub Desktop.
Save ricston-git/4b31bbba400dfdafa03bda7ba3c8554e to your computer and use it in GitHub Desktop.
<flow name="request-reply-asyncFlow">
<http:listener config-ref="HTTP_Listener_Configuration" path="/" doc:name="HTTP" />
<set-payload value="#[{'1','2','3','1','2','3','1','2','3'}]" doc:name="Set Payload" />
<logger message="#[payload]" level="INFO" doc:name="Logger" />
<request-reply doc:name="Request-Reply">
<vm:outbound-endpoint exchange-pattern="one-way" path="vmRequest" doc:name="VM">
<collection-splitter />
</vm:outbound-endpoint>
<vm:inbound-endpoint exchange-pattern="one-way" path="vmReply" doc:name="VM">
<collection-aggregator />
</vm:inbound-endpoint>
</request-reply>
<logger message="=After Request/Reply=" level="INFO" doc:name="Logger" />
<json:object-to-json-transformer doc:name="Object to JSON" />
</flow>
<flow name="request-reply-asyncFlow1">
<vm:inbound-endpoint exchange-pattern="one-way" path="vmRequest" doc:name="VM" />
<scripting:component doc:name="Groovy">
<scripting:script engine="Groovy"><![CDATA[return payload+"-Async";]]></scripting:script>
</scripting:component>
<logger message="#[payload]" level="INFO" doc:name="Logger" />
</flow>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment