Skip to content

Instantly share code, notes, and snippets.

@pax95
Last active December 30, 2015 20:19
Show Gist options
  • Save pax95/7879742 to your computer and use it in GitHub Desktop.
Save pax95/7879742 to your computer and use it in GitHub Desktop.
<route id="audit-trail-route">
<from uri="hubQueue:queue:AUDIT_HUB?concurrentConsumers=5" />
<transacted />
<!-- convert jms payload to a jpa entity bean -->
<bean ref="auditService" method="convertBody" />
<to uri="jpa:org.test.AuditTrail" />
<!-- send a copy to seda queue -->
<to uri="seda:bam"/>
</route>
<route id="splunk-route">
<from uri="seda:bam?concurrentConsumers=5"/>
<!-- use a converter to convert to a SplunkEvent type -->
<convertBodyTo type="org.apache.camel.component.splunk.event.SplunkEvent"/>
<to uri="splunk://submit?host=splunkhost&amp;username=foo&amp;password=bar&amp;index=audit-trail&amp;sourceType=audit"/>
</route>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment