Skip to content

Instantly share code, notes, and snippets.

@bibryam
Created January 13, 2013 15:14
Show Gist options
  • Select an option

  • Save bibryam/4524539 to your computer and use it in GitHub Desktop.

Select an option

Save bibryam/4524539 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
<route startupOrder="1">
<from uri="redis://localhost:6379?command=SUBSCRIBE&amp;channels=testChannel"/>
<to uri="mock:result"/>
</route>
<route startupOrder="2">
<from uri="direct:start"/>
<setHeader headerName="CamelRedis.Command">
<constant>PUBLISH</constant>
</setHeader>
<setHeader headerName="CamelRedis.CHANNEL">
<constant>testChannel</constant>
</setHeader>
<setHeader headerName="CamelRedis.MESSAGE">
<constant>Test Message</constant>
</setHeader>
<to uri="redis://localhost:6379"/>
</route>
</camelContext>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment