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[&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
+&lt;beans xmlns=&quot;http://www.springframework.org/schema/beans&quot;
+       xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
+       xsi:schemaLocation=&quot;
+     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&quot;&gt;
+
+  &lt;bean id=&quot;cacheManagerFactory&quot; class=&quot;org.infinispan.spring.provider.SpringRemoteCacheManagerFactoryBean&quot;&gt;
+    &lt;property
+        name=&quot;configurationProperties&quot;&gt;
+      &lt;props&gt;
+        &lt;prop key=&quot;infinispan.client.hotrod.server_list&quot;&gt;127.0.0.1:11222&lt;/prop&gt;
+        &lt;prop key=&quot;infinispan.client.hotrod.force_return_values&quot;&gt;true&lt;/prop&gt;
+      &lt;/props&gt;
+    &lt;/property&gt;
+  &lt;/bean&gt;
+
+  &lt;bean id=&quot;cacheManager&quot; factory-bean=&quot;cacheManagerFactory&quot; factory-method=&quot;getNativeCacheManager&quot; init-method=&quot;start&quot; destroy-method=&quot;stop&quot;&gt;
+  &lt;/bean&gt;
+
+  &lt;bean id=&quot;infinispanRepo&quot; class=&quot;org.apache.camel.component.infinispan.processor.idempotent.InfinispanIdempotentRepository&quot;
+        factory-method=&quot;infinispanIdempotentRepository&quot;&gt;
+    &lt;constructor-arg ref=&quot;cacheManager&quot;/&gt;
+    &lt;constructor-arg value=&quot;idempotent&quot;/&gt;
+  &lt;/bean&gt;
+
+  &lt;camelContext xmlns=&quot;http://camel.apache.org/schema/spring&quot;&gt;
+    &lt;route id=&quot;infinispan-remote&quot;&gt;
+      &lt;from uri=&quot;direct:start&quot; /&gt;
+      &lt;idempotentConsumer messageIdRepositoryRef=&quot;infinispanRepo&quot;&gt;
+        &lt;header&gt;MessageId&lt;/header&gt;
+        &lt;to uri=&quot;log:org.apache.camel.component.infinispan?level=INFO&amp;amp;showAll=true&amp;amp;multiline=true&quot; /&gt;
+      &lt;/idempotentConsumer&gt;
+    &lt;/route&gt;
+  &lt;/camelContext&gt;
+
+&lt;/beans&gt;]]></script>
 </div></div><p>&#160;</p><p>&#160;</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>