Created
October 5, 2012 17:53
-
-
Save johndemic/3841314 to your computer and use it in GitHub Desktop.
Querying for Accounts by Row with Mule and Cassandra
This file contains hidden or 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
<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