Forked from johndemic/cassandra-idempotent-config.xml
Last active
August 29, 2015 14:06
-
-
Save yamen/a82b4944640e79ca323c to your computer and use it in GitHub Desktop.
This file contains 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
<spring:bean id="cassandraObjectStore" class="com.mulesoft.mule.cassandradb.CassandraDBObjectStore" | |
scope="singleton"> | |
<spring:property name="host" value="cassandradb.acmesoft.com"/> | |
<spring:property name="port" value="9160"/> | |
<spring:property name="keyspace" value="MuleState"/> | |
<spring:property name="consistencyLevel" value="ALL"/> | |
<spring:property name="defaultPartitionName" | |
value="idempotentFlow_#[new java.text.SimpleDateFormat('yyyy_MM_dd').format(new Date())]"/> | |
</spring:bean> | |
<flow name="idempotentReception"> | |
<http:inbound-endpoint address="http://0.0.0.0:8080/orders" exchange-patter="one-way"/> | |
<idempotent-message-filter idExpression="#[payload]"> | |
<spring-object-store ref="cassandraObjectStore"/> | |
</idempotent-message-filter> | |
<vm:outbound-endpoint path="order.process"/> | |
</flow> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment