You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by bu...@apache.org on 2016/04/12 11:18:56 UTC
svn commit: r985465 - in /websites/production/camel/content:
cache/main.pageCache infinispan.html
Author: buildbot
Date: Tue Apr 12 09:18:55 2016
New Revision: 985465
Log:
Production update by buildbot for camel
Modified:
websites/production/camel/content/cache/main.pageCache
websites/production/camel/content/infinispan.html
Modified: websites/production/camel/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.
Modified: websites/production/camel/content/infinispan.html
==============================================================================
--- websites/production/camel/content/infinispan.html (original)
+++ websites/production/camel/content/infinispan.html Tue Apr 12 09:18:55 2016
@@ -130,7 +130,6 @@
true
);
-
context.addRoutes(new RouteBuilder() {
void configure() {
from("direct:start")
@@ -140,6 +139,46 @@ context.addRoutes(new RouteBuilder() {
.to("mock:result");
}
});]]></script>
+</div></div><div class="code panel pdl" style="border-width: 1px;"><div class="codeHeader panelHeader pdl" style="border-bottom-width: 1px;"><b>Spring XML</b></div><div class="codeContent panelContent pdl">
+<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[<?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="cacheManagerFactory" 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="cacheManager" factory-bean="cacheManagerFactory" factory-method="getNativeCacheManager" init-method="start" destroy-method="stop">
+ </bean>
+
+ <bean id="infinispanRepo" class="org.apache.camel.component.infinispan.processor.idempotent.InfinispanIdempotentRepository"
+ factory-method="infinispanIdempotentRepository">
+ <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="infinispanRepo">
+ <header>MessageId</header>
+ <to uri="log:org.apache.camel.component.infinispan?level=INFO&amp;showAll=true&amp;multiline=true" />
+ </idempotentConsumer>
+ </route>
+ </camelContext>
+
+</beans>]]></script>
</div></div><p> </p><p> </p><p>For more information, see these resources...</p><p></p><h3 id="Infinispan-SeeAlso">See Also</h3>
<ul><li><a shape="rect" href="configuring-camel.html">Configuring Camel</a></li><li><a shape="rect" href="component.html">Component</a></li><li><a shape="rect" href="endpoint.html">Endpoint</a></li><li><a shape="rect" href="getting-started.html">Getting Started</a></li></ul></div>
</td>