Skip to content

Instantly share code, notes, and snippets.

@adrianmilne
Created April 17, 2013 21:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adrianmilne/5407993 to your computer and use it in GitHub Desktop.
Save adrianmilne/5407993 to your computer and use it in GitHub Desktop.
CometD demo - camel route
<!--
Server Camel Context (running inside ActiveMQ)
-->
<camelContext xmlns="http://camel.apache.org/schema/spring">
<!-- Load properties to Camel Context -->
<propertyPlaceholder id="properties" location="application.properties" />
<!-- Camel Broadcast Message Route -->
<route id="processIncomingFilesRoute" trace="true" xmlns="http://camel.apache.org/schema/spring">
<!-- Listen on this Queue for incoming Messages -->
<from uri="activemq://queue:{{broker.queue}}" />
<!-- Log to console -->
<log message="Incoming Message - distribute via Cometd" loggingLevel="INFO" />
<!--
Creates a Cometd channel endpoint
Broadcast to all Cometd registered subscribers
-->
<to uri="{{cometd.channel}}" />
</route>
</camelContext>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment