Skip to content

Instantly share code, notes, and snippets.

@johndemic
Created October 5, 2012 17:53
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/3841314 to your computer and use it in GitHub Desktop.
Save johndemic/3841314 to your computer and use it in GitHub Desktop.
Querying for Accounts by Row with Mule and Cassandra
<flow name="AccountList" doc:name="AccountsList">
<http:inbound-endpoint
exchange-pattern="request-response"
host="localhost" port="8081"
path="account/list"/>
<cassandradb:get-slice
config-ref="CassandraDB"
rowKey="#[message.inboundProperties['http.relative.path'].split('/')[0]]"
columnParent="Accounts" count="100">
<cassandradb:column-serializer
key="passwordAge" type="java.lang.Integer"/>
</cassandradb:get-slice>
<json:object-to-json-transformer/>
</flow>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment