Skip to content

Instantly share code, notes, and snippets.

@ddossot
Created November 3, 2011 23:05
Show Gist options
  • Save ddossot/1338210 to your computer and use it in GitHub Desktop.
Save ddossot/1338210 to your computer and use it in GitHub Desktop.
tcp-client-cid
<flow name="tcp-client-cid">
<tcp:inbound-endpoint host="localhost" port="15015" />
<json:json-to-object-transformer />
<script:component>
<script:script engine="groovy">message.correlationId=payload.get('CID')</script:script>
</script:component>
<logger level="INFO" message="#[string:#[context:serviceName] received:#[message:correlationId]]" />
...
</flow>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment