You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Luca Burgazzoli (JIRA)" <ji...@apache.org> on 2016/04/22 17:19:12 UTC
[jira] [Work started] (CAMEL-9883) Add a SpringCache based
idempotent repository
[ https://issues.apache.org/jira/browse/CAMEL-9883?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Work on CAMEL-9883 started by Luca Burgazzoli.
----------------------------------------------
> Add a SpringCache based idempotent repository
> ---------------------------------------------
>
> Key: CAMEL-9883
> URL: https://issues.apache.org/jira/browse/CAMEL-9883
> Project: Camel
> Issue Type: New Feature
> Components: camel-spring
> Reporter: Luca Burgazzoli
> Assignee: Luca Burgazzoli
> Priority: Minor
>
> It may be useful to have a spring-cache based idempotent repository to ease the configuration of idempotent repository in spring xml based projects.
> i.e.
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns="http://www.springframework.org/schema/beans"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="
> http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans.xsd
> http://camel.apache.org/schema/spring
> http://camel.apache.org/schema/spring/camel-spring.xsd">
> <bean id="cacheManager" class="org.infinispan.spring.provider.SpringRemoteCacheManagerFactoryBean">
> <property
> name="configurationProperties">
> <props>
> <prop key="infinispan.client.hotrod.server_list">127.0.0.1:11222</prop>
> <prop key="infinispan.client.hotrod.force_return_values">true</prop>
> </props>
> </property>
> </bean>
> <bean id="repo" class="org.apache.camel-spring.SpringCacheIdempotentRepository">
> <constructor-arg ref="cacheManager"/>
> <constructor-arg value="idempotent"/>
> </bean>
> <camelContext xmlns="http://camel.apache.org/schema/spring">
> <route id="infinispan-remote">
> <from uri="direct:start" />
> <idempotentConsumer messageIdRepositoryRef="repo" skipDuplicate="true">
> <header>MessageId</header>
> <to uri="log:camel?level=INFO&showAll=true&multiline=true" />
> </idempotentConsumer>
> </route>
> </camelContext>
> </beans>
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)