Created
April 17, 2013 21:38
-
-
Save adrianmilne/5407993 to your computer and use it in GitHub Desktop.
CometD demo - camel route
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
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