...
In this configuration, the Publish Event mediator uses four attributes to extract information from the ESB. This information is published in an event sink in the ESB named bamsample_event_sink
.
Code Block | ||
---|---|---|
| ||
<publishEvent> <eventSink>bam<eventSink>sample_event_sink</eventSink> <streamName>stream_88</streamName> <streamVersion>1.1.2</streamVersion> <attributes> <meta> <attribute name="http_method" type="STRING" defaultValue="" expression="get-property('axis2', 'HTTP_METHOD')"/> <attribute name="destination" type="STRING" defaultValue="" expression="get-property('To')"/> </meta> <correlation> <attribute name="date" type="STRING" defaultValue="" expression="get-property('SYSTEM_DATE')"/> </correlation> <payload> <attribute xmlns:m0="http://services.samples" name="symbol" type="STRING" defaultValue="" expression="$body/m0:getQuote/m0:request/m0:symbol"/> </payload> </attributes> </publishEvent> |