camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luca Burgazzoli (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CAMEL-9883) Add a SpringCache based idempotent repository
Date Tue, 26 Apr 2016 13:02:13 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-9883?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Luca Burgazzoli resolved CAMEL-9883.
------------------------------------
       Resolution: Fixed
    Fix Version/s: 2.18.0
                   2.17.1

> 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
>             Fix For: 2.17.1, 2.18.0
>
>
> 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&amp;showAll=true&amp;multiline=true"
/>
>       </idempotentConsumer>
>     </route>
>   </camelContext>
> </beans>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message