Skip to content

Instantly share code, notes, and snippets.

@johndemic
Created October 5, 2012 17:47
Show Gist options
  • Save johndemic/3841275 to your computer and use it in GitHub Desktop.
Save johndemic/3841275 to your computer and use it in GitHub Desktop.
Querying for an Account with Mule and Cassandra using Explicit Column Serialization
<flow name="AccountGet" doc:name="AccountGet">
<http:inbound-endpoint
exchange-pattern="request-response"
host="localhost"
port="8081"
path="account/get" />
<cassandradb:get config-ref="CassandraDB"
columnPath="Accounts:#[message.inboundProperties['http.relative.path'].split('/')[1]]"
rowKey="#[message.inboundProperties['http.relative.path'].split('/')[0]]" doc:name="Cassandradb">
<cassandradb:column-serializers>
<cassandradb:column-serializer
key="passwordAge"
type="java.lang.Integer"/>
</cassandradb:column-serializers>
</cassandradb:get>
<json:object-to-json-transformer/>
</flow>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment