Skip to content

Instantly share code, notes, and snippets.

@johndemic
Created October 5, 2012 17:41
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 johndemic/3841234 to your computer and use it in GitHub Desktop.
Save johndemic/3841234 to your computer and use it in GitHub Desktop.
Querying for an Account with Mule and Cassandra
<flow name="AccountGet" doc:name="AccountGet">
<http:inbound-endpoint
exchange-pattern="request-response"
host="localhost"
port="8081"
path="account/get"
doc:name="HTTP"/>
<cassandradb:get config-ref="CassandraDB"
columnPath=
"Accounts:#[message.inboundProperties['http.relative.path'].split('/')[1]]"
rowKey=
"#[message.inboundProperties['http.relative.path'].split('/')[0]]"/>
<json:object-to-json-transformer doc:name="Object to JSON"/>
</flow>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment