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 2015/05/04 18:19:41 UTC
svn commit: r950072 - in /websites/production/camel/content:
book-component-appendix.html book-in-one-page.html cache/main.pageCache
hazelcast-component.html
Author: buildbot
Date: Mon May 4 16:19:40 2015
New Revision: 950072
Log:
Production update by buildbot for camel
Modified:
websites/production/camel/content/book-component-appendix.html
websites/production/camel/content/book-in-one-page.html
websites/production/camel/content/cache/main.pageCache
websites/production/camel/content/hazelcast-component.html
Modified: websites/production/camel/content/book-component-appendix.html
==============================================================================
--- websites/production/camel/content/book-component-appendix.html (original)
+++ websites/production/camel/content/book-component-appendix.html Mon May 4 16:19:40 2015
@@ -1334,11 +1334,11 @@ template.send("direct:alias-verify&
</div>
</div>
<p>The <strong>cxf:</strong> component provides integration with <a shape="rect" href="http://cxf.apache.org">Apache CXF</a> for connecting to JAX-WS services hosted in CXF.</p><p><style type="text/css">/*<![CDATA[*/
-div.rbtoc1430659138917 {padding: 0px;}
-div.rbtoc1430659138917 ul {list-style: disc;margin-left: 0px;}
-div.rbtoc1430659138917 li {margin-left: 0px;padding-left: 0px;}
+div.rbtoc1430756278944 {padding: 0px;}
+div.rbtoc1430756278944 ul {list-style: disc;margin-left: 0px;}
+div.rbtoc1430756278944 li {margin-left: 0px;padding-left: 0px;}
-/*]]>*/</style></p><div class="toc-macro rbtoc1430659138917">
+/*]]>*/</style></p><div class="toc-macro rbtoc1430756278944">
<ul class="toc-indentation"><li><a shape="rect" href="#CXF-CXFComponent">CXF Component</a>
<ul class="toc-indentation"><li><a shape="rect" href="#CXF-URIformat">URI format</a></li><li><a shape="rect" href="#CXF-Options">Options</a>
<ul class="toc-indentation"><li><a shape="rect" href="#CXF-Thedescriptionsofthedataformats">The descriptions of the dataformats</a>
@@ -3866,7 +3866,7 @@ http://java.sun.com/xml/ns/javaee/web-ap
<p>You have to use the second prefix to define which type of data store you want to use.</p>
</div>
</div>
-<h3 id="BookComponentAppendix-Sections">Sections</h3><ol><li>Usage of <a shape="rect" href="#BookComponentAppendix-map">#map</a></li><li>Usage of <a shape="rect" href="#BookComponentAppendix-multimap">#multimap</a></li><li>Usage of <a shape="rect" href="#BookComponentAppendix-queue">#queue</a></li><li>Usage of <a shape="rect" href="#BookComponentAppendix-topic">#topic</a></li><li>Usage of <a shape="rect" href="#BookComponentAppendix-list">#list</a></li><li>Usage of <a shape="rect" href="#BookComponentAppendix-seda">#seda</a></li><li>Usage of <a shape="rect" href="#BookComponentAppendix-atomicnumber">atomic number</a></li><li>Usage of <a shape="rect" href="#BookComponentAppendix-cluster">#cluster</a> support (instance)</li></ol><p><span class="confluence-anchor-link" id="BookComponentAppendix-map"></span></p><h3 id="BookComponentAppendix-UsageofMap">Usage of Map</h3><h4 id="BookComponentAppendix-mapcacheproducer-to("hazelcast:map:foo")">map cache producer - to("hazelcast:ma
p:foo")</h4><p>If you want to store a value in a map you can use the map cache producer. The map cache producer provides 5 operations (put, get, update, delete, query). For the first 4 you have to provide the operation inside the "hazelcast.operation.type" header variable. In Java DSL you can use the constants from <code>org.apache.camel.component.hazelcast.HazelcastConstants</code>.</p><p>Header Variables for the request message:</p><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Name</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Type</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.operation.type</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>valid values are: put, delete, get, update, query</p
><p><strong>From Camel 2.16:</strong> getAll, clear</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.objectId</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the object id to store / find your object inside the cache (not needed for the query operation)</p></td></tr></tbody></table></div> <div class="aui-message problem shadowed information-macro">
+<h3 id="BookComponentAppendix-Sections">Sections</h3><ol><li>Usage of <a shape="rect" href="#BookComponentAppendix-map">#map</a></li><li>Usage of <a shape="rect" href="#BookComponentAppendix-multimap">#multimap</a></li><li>Usage of <a shape="rect" href="#BookComponentAppendix-queue">#queue</a></li><li>Usage of <a shape="rect" href="#BookComponentAppendix-topic">#topic</a></li><li>Usage of <a shape="rect" href="#BookComponentAppendix-list">#list</a></li><li>Usage of <a shape="rect" href="#BookComponentAppendix-seda">#seda</a></li><li>Usage of <a shape="rect" href="#BookComponentAppendix-atomicnumber">atomic number</a></li><li>Usage of <a shape="rect" href="#BookComponentAppendix-cluster">#cluster</a> support (instance)</li><li>Usage of <a shape="rect" href="#BookComponentAppendix-replicatedmap">#replicatedmap</a> </li></ol><p><span class="confluence-anchor-link" id="BookComponentAppendix-map"></span></p><h3 id="BookComponentAppendix-UsageofMap">Usage of Map</h3><h4 id="BookCompo
nentAppendix-mapcacheproducer-to("hazelcast:map:foo")">map cache producer - to("hazelcast:map:foo")</h4><p>If you want to store a value in a map you can use the map cache producer. The map cache producer provides 5 operations (put, get, update, delete, query). For the first 4 you have to provide the operation inside the "hazelcast.operation.type" header variable. In Java DSL you can use the constants from <code>org.apache.camel.component.hazelcast.HazelcastConstants</code>.</p><p>Header Variables for the request message:</p><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Name</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Type</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.operation.type</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><t
d colspan="1" rowspan="1" class="confluenceTd"><p>valid values are: put, delete, get, update, query</p><p><strong>From Camel 2.16:</strong> getAll, clear</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.objectId</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the object id to store / find your object inside the cache (not needed for the query operation)</p></td></tr></tbody></table></div> <div class="aui-message problem shadowed information-macro">
<span class="aui-icon icon-problem">Icon</span>
<div class="message-content">
<p>Header variables have changed in Camel 2.8</p>
@@ -4428,7 +4428,7 @@ template.sendBodyAndHeader("direct:
<p>Header variables have changed in Camel 2.8</p>
</div>
</div>
-<div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Name</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Type</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastListenerTime</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>Long</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>time of the event in millis <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastListenerType</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the map consumer sets here "instancelistener" <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr>
<tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastListenerActionn</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>type of event - here <strong>added</strong> or <strong>removed</strong>. <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastInstanceHost</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>host name of the instance <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastInstancePort</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>Integer</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>port n
umber of the instance <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr></tbody></table></div><h3 id="BookComponentAppendix-Usinghazelcastreference">Using hazelcast reference</h3><h4 id="BookComponentAppendix-Byitsname">By its name</h4><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Name</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Type</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastListenerTime</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>Long</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>time of the event in millis <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastListenerType</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the map consumer sets here "instancelistener" <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr>
<tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastListenerActionn</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>type of event - here <strong>added</strong> or <strong>removed</strong>. <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastInstanceHost</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>host name of the instance <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastInstancePort</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>Integer</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>port n
umber of the instance <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr></tbody></table></div><h3 id="BookComponentAppendix-Usinghazelcastreference"><span style="line-height: 1.5625;">Using hazelcast reference</span></h3><h4 id="BookComponentAppendix-Byitsname">By its name</h4><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[<bean id="hazelcastLifecycle" class="com.hazelcast.core.LifecycleService"
factory-bean="hazelcastInstance" factory-method="getLifecycleService"
destroy-method="shutdown" />
@@ -4516,7 +4516,87 @@ template.sendBodyAndHeader("direct:
<to uri="seda:out" />
</route>
</camelContext>]]></script>
-</div></div> <h2 id="BookComponentAppendix-HDFSComponent">HDFS Component</h2><p><strong>Available as of Camel 2.8</strong></p><p>The <strong>hdfs</strong> component enables you to read and write messages from/to an HDFS file system. HDFS is the distributed file system at the heart of <a shape="rect" class="external-link" href="http://hadoop.apache.org">Hadoop</a>.</p><p>Maven users will need to add the following dependency to their <code>pom.xml</code> for this component:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+</div></div><p><span class="confluence-anchor-link" id="BookComponentAppendix-replicatedmap"></span></p><h3 id="BookComponentAppendix-UsageofReplicatedmap">Usage of Replicated map</h3><p><strong>Avalaible from Camel 2.16</strong></p><h4 id="BookComponentAppendix-replicatedmapcacheproducer-to("hazelcast:replicatedmap:foo")">replicatedmap cache producer - to("<a shape="rect" class="external-link" href="http://hazelcastreplicatedmapfoo" rel="nofollow">hazelcast:replicatedmap:foo</a>")</h4><p><span style="color: rgb(68,68,68);">A replicated map is a weakly consistent, distributed key-value data structure with no data partition</span>. The replicatedmap producer provides 4 operations (put, get, delete, clear).</p><p>Header Variables for the request message:</p><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Name</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Type</p></th><th colspan="1" rowspan="
1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.operation.type</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>valid values are: put, get, delete, clear</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.objectId</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the object id to store / find your object inside the cache</p></td></tr></tbody></table></div> <div class="aui-message problem shadowed information-macro">
+ <span class="aui-icon icon-problem">Icon</span>
+ <div class="message-content">
+ <p>Header variables have changed in Camel 2.8</p>
+ </div>
+ </div>
+<div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Name</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Type</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastOperationType</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>valid values are: put, get, removevalue, delete <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastObjectId</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the object id to store / find your object inside the cache <strong><a shape="rect" class="unresolved" href="#">Versio
n 2.8</a></strong></p></td></tr></tbody></table></div><h5 id="BookComponentAppendix-Sampleforput:.4">Sample for <strong>put</strong>:</h5><p>Java DSL:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[from("direct:put")
+.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.PUT_OPERATION))
+.to(String.format("hazelcast:%sbar", HazelcastConstants.REPLICATEDMAP_PREFIX));
+]]></script>
+</div></div><p>Spring DSL:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[<route>
+ <from uri="direct:put" />
+ <log message="put.."/>
+ <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
+ <setHeader headerName="hazelcast.operation.type">
+ <constant>put</constant>
+ </setHeader>
+ <to uri="hazelcast:replicatedmap:foo" />
+</route>]]></script>
+</div></div><h5 id="BookComponentAppendix-Sampleforget:.5">Sample for <strong>get</strong>:</h5><p>Java DSL:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[from("direct:get")
+.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.GET_OPERATION))
+.toF("hazelcast:%sbar", HazelcastConstants.REPLICATEDMAP_PREFIX)
+.to("seda:out");
+]]></script>
+</div></div><p>Spring DSL:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[<route>
+ <from uri="direct:get" />
+ <log message="get.."/>
+ <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
+ <setHeader headerName="hazelcast.operation.type">
+ <constant>get</constant>
+ </setHeader>
+ <to uri="hazelcast:replicatedmap:foo" />
+ <to uri="seda:out" />
+</route>
+]]></script>
+</div></div><h5 id="BookComponentAppendix-Samplefordelete:.3">Sample for <strong>delete</strong>:</h5><p>Java DSL:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[from("direct:delete")
+.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.DELETE_OPERATION))
+.toF("hazelcast:%sbar", HazelcastConstants.REPLICATEDMAP_PREFIX);
+]]></script>
+</div></div><p>Spring DSL:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[<route>
+ <from uri="direct:delete" />
+ <log message="delete.."/>
+ <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
+ <setHeader headerName="hazelcast.operation.type">
+ <constant>delete</constant>
+ </setHeader>
+ <to uri="hazelcast:replicatedmap:foo" />
+</route>
+]]></script>
+</div></div><p>you can call them in your test class with:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[template.sendBodyAndHeader("direct:[put|get|delete|clear]", "my-foo", HazelcastConstants.OBJECT_ID, "4711");
+]]></script>
+</div></div><h4 id="BookComponentAppendix-replicatedmapcacheconsumer-from("hazelcast:replicatedmap:foo")">replicatedmap cache consumer - from("<a shape="rect" class="external-link" href="http://hazelcastreplicatedmapfoo" rel="nofollow">hazelcast:replicatedmap:foo</a>")</h4><p>For the multimap cache this component provides the same listeners / variables as for the map cache consumer (except the update and enviction listener). The only difference is the <strong>multimap</strong> prefix inside the URI. Here is a sample:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[fromF("hazelcast:%sbar", HazelcastConstants.MULTIMAP_PREFIX)
+.log("object...")
+.choice()
+ .when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.ADDED))
+ .log("...added")
+ .to("mock:added")
+ //.when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.ENVICTED))
+ // .log("...envicted")
+ // .to("mock:envicted")
+ .when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.REMOVED))
+ .log("...removed")
+ .to("mock:removed")
+ .otherwise()
+ .log("fail!");
+]]></script>
+</div></div><p>Header Variables inside the response message:</p><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Name</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Type</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.listener.time</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>Long</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>time of the event in millis</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.listener.type</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the map consumer sets here "cachelistener"</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.listener.action</code></p><
/td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>type of event - here <strong>added</strong> and <strong>removed</strong> (and soon <strong>envicted</strong>)</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.objectId</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the oid of the object</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.cache.name</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the name of the cache - e.g. "foo"</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.cache.type</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" row
span="1" class="confluenceTd"><p>the type of the cache - here replicatedmap</p></td></tr></tbody></table></div><p>Eviction will be added as feature, soon (this is a Hazelcast issue).</p> <div class="aui-message problem shadowed information-macro">
+ <span class="aui-icon icon-problem">Icon</span>
+ <div class="message-content">
+ <p>Header variables have changed in Camel 2.8</p>
+ </div>
+ </div>
+<div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Name</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Type</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastListenerTime</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>Long</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>time of the event in millis <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastListenerType</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the map consumer sets here "cachelistener" <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr><tr
><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastListenerAction</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>type of event - here <strong>added</strong> and <strong>removed</strong> (and soon <strong>envicted</strong>) <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastObjectId</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the oid of the object <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastCacheName</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="co
nfluenceTd"><p>the name of the cache - e.g. "foo" <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastCacheType</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the type of the cache - here replicatedmap <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr></tbody></table></div> <h2 id="BookComponentAppendix-HDFSComponent">HDFS Component</h2><p><strong>Available as of Camel 2.8</strong></p><p>The <strong>hdfs</strong> component enables you to read and write messages from/to an HDFS file system. HDFS is the distributed file system at the heart of <a shape="rect" class="external-link" href="http://hadoop.apache.org">Hadoop</a>.</p><p>Maven users will need to add the following dependency to their <code>pom.xml</code> for this component:</p><
div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-hdfs</artifactId>
Modified: websites/production/camel/content/book-in-one-page.html
==============================================================================
--- websites/production/camel/content/book-in-one-page.html (original)
+++ websites/production/camel/content/book-in-one-page.html Mon May 4 16:19:40 2015
@@ -4040,11 +4040,11 @@ While not actual tutorials you might fin
</div>
</div>
<h2 id="BookInOnePage-Preface">Preface</h2><p>This tutorial aims to guide the reader through the stages of creating a project which uses Camel to facilitate the routing of messages from a JMS queue to a <a shape="rect" class="external-link" href="http://www.springramework.org" rel="nofollow">Spring</a> service. The route works in a synchronous fashion returning a response to the client.</p><p><style type="text/css">/*<![CDATA[*/
-div.rbtoc1430659147705 {padding: 0px;}
-div.rbtoc1430659147705 ul {list-style: disc;margin-left: 0px;}
-div.rbtoc1430659147705 li {margin-left: 0px;padding-left: 0px;}
+div.rbtoc1430756303542 {padding: 0px;}
+div.rbtoc1430756303542 ul {list-style: disc;margin-left: 0px;}
+div.rbtoc1430756303542 li {margin-left: 0px;padding-left: 0px;}
-/*]]>*/</style></p><div class="toc-macro rbtoc1430659147705">
+/*]]>*/</style></p><div class="toc-macro rbtoc1430756303542">
<ul class="toc-indentation"><li><a shape="rect" href="#Tutorial-JmsRemoting-TutorialonSpringRemotingwithJMS">Tutorial on Spring Remoting with JMS</a></li><li><a shape="rect" href="#Tutorial-JmsRemoting-Preface">Preface</a></li><li><a shape="rect" href="#Tutorial-JmsRemoting-Prerequisites">Prerequisites</a></li><li><a shape="rect" href="#Tutorial-JmsRemoting-Distribution">Distribution</a></li><li><a shape="rect" href="#Tutorial-JmsRemoting-About">About</a></li><li><a shape="rect" href="#Tutorial-JmsRemoting-CreatetheCamelProject">Create the Camel Project</a>
<ul class="toc-indentation"><li><a shape="rect" href="#Tutorial-JmsRemoting-UpdatethePOMwithDependencies">Update the POM with Dependencies</a></li></ul>
</li><li><a shape="rect" href="#Tutorial-JmsRemoting-WritingtheServer">Writing the Server</a>
@@ -6230,11 +6230,11 @@ So we completed the last piece in the pi
<style type="text/css">/*<![CDATA[*/
-div.rbtoc1430659148080 {padding: 0px;}
-div.rbtoc1430659148080 ul {list-style: disc;margin-left: 0px;}
-div.rbtoc1430659148080 li {margin-left: 0px;padding-left: 0px;}
+div.rbtoc1430756303867 {padding: 0px;}
+div.rbtoc1430756303867 ul {list-style: disc;margin-left: 0px;}
+div.rbtoc1430756303867 li {margin-left: 0px;padding-left: 0px;}
-/*]]>*/</style><div class="toc-macro rbtoc1430659148080">
+/*]]>*/</style><div class="toc-macro rbtoc1430756303867">
<ul class="toc-indentation"><li><a shape="rect" href="#Tutorial-AXIS-Camel-TutorialusingAxis1.4withApacheCamel">Tutorial using Axis 1.4 with Apache Camel</a>
<ul class="toc-indentation"><li><a shape="rect" href="#Tutorial-AXIS-Camel-Prerequisites">Prerequisites</a></li><li><a shape="rect" href="#Tutorial-AXIS-Camel-Distribution">Distribution</a></li><li><a shape="rect" href="#Tutorial-AXIS-Camel-Introduction">Introduction</a></li><li><a shape="rect" href="#Tutorial-AXIS-Camel-SettinguptheprojecttorunAxis">Setting up the project to run Axis</a>
<ul class="toc-indentation"><li><a shape="rect" href="#Tutorial-AXIS-Camel-Maven2">Maven 2</a></li><li><a shape="rect" href="#Tutorial-AXIS-Camel-wsdl">wsdl</a></li><li><a shape="rect" href="#Tutorial-AXIS-Camel-ConfiguringAxis">Configuring Axis</a></li><li><a shape="rect" href="#Tutorial-AXIS-Camel-RunningtheExample">Running the Example</a></li></ul>
@@ -18860,11 +18860,11 @@ template.send("direct:alias-verify&
</div>
</div>
<p>The <strong>cxf:</strong> component provides integration with <a shape="rect" href="http://cxf.apache.org">Apache CXF</a> for connecting to JAX-WS services hosted in CXF.</p><p><style type="text/css">/*<![CDATA[*/
-div.rbtoc1430659167808 {padding: 0px;}
-div.rbtoc1430659167808 ul {list-style: disc;margin-left: 0px;}
-div.rbtoc1430659167808 li {margin-left: 0px;padding-left: 0px;}
+div.rbtoc1430756324411 {padding: 0px;}
+div.rbtoc1430756324411 ul {list-style: disc;margin-left: 0px;}
+div.rbtoc1430756324411 li {margin-left: 0px;padding-left: 0px;}
-/*]]>*/</style></p><div class="toc-macro rbtoc1430659167808">
+/*]]>*/</style></p><div class="toc-macro rbtoc1430756324411">
<ul class="toc-indentation"><li><a shape="rect" href="#CXF-CXFComponent">CXF Component</a>
<ul class="toc-indentation"><li><a shape="rect" href="#CXF-URIformat">URI format</a></li><li><a shape="rect" href="#CXF-Options">Options</a>
<ul class="toc-indentation"><li><a shape="rect" href="#CXF-Thedescriptionsofthedataformats">The descriptions of the dataformats</a>
@@ -21392,7 +21392,7 @@ http://java.sun.com/xml/ns/javaee/web-ap
<p>You have to use the second prefix to define which type of data store you want to use.</p>
</div>
</div>
-<h3 id="BookInOnePage-Sections">Sections</h3><ol><li>Usage of <a shape="rect" href="#BookInOnePage-map">#map</a></li><li>Usage of <a shape="rect" href="#BookInOnePage-multimap">#multimap</a></li><li>Usage of <a shape="rect" href="#BookInOnePage-queue">#queue</a></li><li>Usage of <a shape="rect" href="#BookInOnePage-topic">#topic</a></li><li>Usage of <a shape="rect" href="#BookInOnePage-list">#list</a></li><li>Usage of <a shape="rect" href="#BookInOnePage-seda">#seda</a></li><li>Usage of <a shape="rect" href="#BookInOnePage-atomicnumber">atomic number</a></li><li>Usage of <a shape="rect" href="#BookInOnePage-cluster">#cluster</a> support (instance)</li></ol><p><span class="confluence-anchor-link" id="BookInOnePage-map"></span></p><h3 id="BookInOnePage-UsageofMap">Usage of Map</h3><h4 id="BookInOnePage-mapcacheproducer-to("hazelcast:map:foo")">map cache producer - to("hazelcast:map:foo")</h4><p>If you want to store a value in a map you can use the map cache producer. The map
cache producer provides 5 operations (put, get, update, delete, query). For the first 4 you have to provide the operation inside the "hazelcast.operation.type" header variable. In Java DSL you can use the constants from <code>org.apache.camel.component.hazelcast.HazelcastConstants</code>.</p><p>Header Variables for the request message:</p><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Name</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Type</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.operation.type</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>valid values are: put, delete, get, update, query</p><p><strong>From Camel 2.16:</strong> getAll, clear</p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p><code>hazelcast.objectId</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the object id to store / find your object inside the cache (not needed for the query operation)</p></td></tr></tbody></table></div> <div class="aui-message problem shadowed information-macro">
+<h3 id="BookInOnePage-Sections">Sections</h3><ol><li>Usage of <a shape="rect" href="#BookInOnePage-map">#map</a></li><li>Usage of <a shape="rect" href="#BookInOnePage-multimap">#multimap</a></li><li>Usage of <a shape="rect" href="#BookInOnePage-queue">#queue</a></li><li>Usage of <a shape="rect" href="#BookInOnePage-topic">#topic</a></li><li>Usage of <a shape="rect" href="#BookInOnePage-list">#list</a></li><li>Usage of <a shape="rect" href="#BookInOnePage-seda">#seda</a></li><li>Usage of <a shape="rect" href="#BookInOnePage-atomicnumber">atomic number</a></li><li>Usage of <a shape="rect" href="#BookInOnePage-cluster">#cluster</a> support (instance)</li><li>Usage of <a shape="rect" href="#BookInOnePage-replicatedmap">#replicatedmap</a> </li></ol><p><span class="confluence-anchor-link" id="BookInOnePage-map"></span></p><h3 id="BookInOnePage-UsageofMap">Usage of Map</h3><h4 id="BookInOnePage-mapcacheproducer-to("hazelcast:map:foo")">map cache producer - to("hazelcast:map:
foo")</h4><p>If you want to store a value in a map you can use the map cache producer. The map cache producer provides 5 operations (put, get, update, delete, query). For the first 4 you have to provide the operation inside the "hazelcast.operation.type" header variable. In Java DSL you can use the constants from <code>org.apache.camel.component.hazelcast.HazelcastConstants</code>.</p><p>Header Variables for the request message:</p><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Name</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Type</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.operation.type</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>valid values are: put, delete, get, update, query</p><
p><strong>From Camel 2.16:</strong> getAll, clear</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.objectId</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the object id to store / find your object inside the cache (not needed for the query operation)</p></td></tr></tbody></table></div> <div class="aui-message problem shadowed information-macro">
<span class="aui-icon icon-problem">Icon</span>
<div class="message-content">
<p>Header variables have changed in Camel 2.8</p>
@@ -21954,7 +21954,7 @@ template.sendBodyAndHeader("direct:
<p>Header variables have changed in Camel 2.8</p>
</div>
</div>
-<div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Name</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Type</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastListenerTime</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>Long</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>time of the event in millis <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastListenerType</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the map consumer sets here "instancelistener" <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr>
<tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastListenerActionn</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>type of event - here <strong>added</strong> or <strong>removed</strong>. <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastInstanceHost</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>host name of the instance <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastInstancePort</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>Integer</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>port n
umber of the instance <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr></tbody></table></div><h3 id="BookInOnePage-Usinghazelcastreference">Using hazelcast reference</h3><h4 id="BookInOnePage-Byitsname">By its name</h4><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Name</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Type</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastListenerTime</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>Long</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>time of the event in millis <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastListenerType</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the map consumer sets here "instancelistener" <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr>
<tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastListenerActionn</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>type of event - here <strong>added</strong> or <strong>removed</strong>. <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastInstanceHost</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>host name of the instance <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastInstancePort</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>Integer</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>port n
umber of the instance <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr></tbody></table></div><h3 id="BookInOnePage-Usinghazelcastreference"><span style="line-height: 1.5625;">Using hazelcast reference</span></h3><h4 id="BookInOnePage-Byitsname">By its name</h4><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[<bean id="hazelcastLifecycle" class="com.hazelcast.core.LifecycleService"
factory-bean="hazelcastInstance" factory-method="getLifecycleService"
destroy-method="shutdown" />
@@ -22042,7 +22042,87 @@ template.sendBodyAndHeader("direct:
<to uri="seda:out" />
</route>
</camelContext>]]></script>
-</div></div> <h2 id="BookInOnePage-HDFSComponent">HDFS Component</h2><p><strong>Available as of Camel 2.8</strong></p><p>The <strong>hdfs</strong> component enables you to read and write messages from/to an HDFS file system. HDFS is the distributed file system at the heart of <a shape="rect" class="external-link" href="http://hadoop.apache.org">Hadoop</a>.</p><p>Maven users will need to add the following dependency to their <code>pom.xml</code> for this component:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+</div></div><p><span class="confluence-anchor-link" id="BookInOnePage-replicatedmap"></span></p><h3 id="BookInOnePage-UsageofReplicatedmap">Usage of Replicated map</h3><p><strong>Avalaible from Camel 2.16</strong></p><h4 id="BookInOnePage-replicatedmapcacheproducer-to("hazelcast:replicatedmap:foo")">replicatedmap cache producer - to("<a shape="rect" class="external-link" href="http://hazelcastreplicatedmapfoo" rel="nofollow">hazelcast:replicatedmap:foo</a>")</h4><p><span style="color: rgb(68,68,68);">A replicated map is a weakly consistent, distributed key-value data structure with no data partition</span>. The replicatedmap producer provides 4 operations (put, get, delete, clear).</p><p>Header Variables for the request message:</p><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Name</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Type</p></th><th colspan="1" rowspan="1" class="confluenceTh">
<p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.operation.type</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>valid values are: put, get, delete, clear</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.objectId</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the object id to store / find your object inside the cache</p></td></tr></tbody></table></div> <div class="aui-message problem shadowed information-macro">
+ <span class="aui-icon icon-problem">Icon</span>
+ <div class="message-content">
+ <p>Header variables have changed in Camel 2.8</p>
+ </div>
+ </div>
+<div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Name</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Type</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastOperationType</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>valid values are: put, get, removevalue, delete <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastObjectId</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the object id to store / find your object inside the cache <strong><a shape="rect" class="unresolved" href="#">Versio
n 2.8</a></strong></p></td></tr></tbody></table></div><h5 id="BookInOnePage-Sampleforput:.4">Sample for <strong>put</strong>:</h5><p>Java DSL:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[from("direct:put")
+.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.PUT_OPERATION))
+.to(String.format("hazelcast:%sbar", HazelcastConstants.REPLICATEDMAP_PREFIX));
+]]></script>
+</div></div><p>Spring DSL:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[<route>
+ <from uri="direct:put" />
+ <log message="put.."/>
+ <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
+ <setHeader headerName="hazelcast.operation.type">
+ <constant>put</constant>
+ </setHeader>
+ <to uri="hazelcast:replicatedmap:foo" />
+</route>]]></script>
+</div></div><h5 id="BookInOnePage-Sampleforget:.5">Sample for <strong>get</strong>:</h5><p>Java DSL:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[from("direct:get")
+.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.GET_OPERATION))
+.toF("hazelcast:%sbar", HazelcastConstants.REPLICATEDMAP_PREFIX)
+.to("seda:out");
+]]></script>
+</div></div><p>Spring DSL:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[<route>
+ <from uri="direct:get" />
+ <log message="get.."/>
+ <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
+ <setHeader headerName="hazelcast.operation.type">
+ <constant>get</constant>
+ </setHeader>
+ <to uri="hazelcast:replicatedmap:foo" />
+ <to uri="seda:out" />
+</route>
+]]></script>
+</div></div><h5 id="BookInOnePage-Samplefordelete:.3">Sample for <strong>delete</strong>:</h5><p>Java DSL:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[from("direct:delete")
+.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.DELETE_OPERATION))
+.toF("hazelcast:%sbar", HazelcastConstants.REPLICATEDMAP_PREFIX);
+]]></script>
+</div></div><p>Spring DSL:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[<route>
+ <from uri="direct:delete" />
+ <log message="delete.."/>
+ <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
+ <setHeader headerName="hazelcast.operation.type">
+ <constant>delete</constant>
+ </setHeader>
+ <to uri="hazelcast:replicatedmap:foo" />
+</route>
+]]></script>
+</div></div><p>you can call them in your test class with:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[template.sendBodyAndHeader("direct:[put|get|delete|clear]", "my-foo", HazelcastConstants.OBJECT_ID, "4711");
+]]></script>
+</div></div><h4 id="BookInOnePage-replicatedmapcacheconsumer-from("hazelcast:replicatedmap:foo")">replicatedmap cache consumer - from("<a shape="rect" class="external-link" href="http://hazelcastreplicatedmapfoo" rel="nofollow">hazelcast:replicatedmap:foo</a>")</h4><p>For the multimap cache this component provides the same listeners / variables as for the map cache consumer (except the update and enviction listener). The only difference is the <strong>multimap</strong> prefix inside the URI. Here is a sample:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[fromF("hazelcast:%sbar", HazelcastConstants.MULTIMAP_PREFIX)
+.log("object...")
+.choice()
+ .when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.ADDED))
+ .log("...added")
+ .to("mock:added")
+ //.when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.ENVICTED))
+ // .log("...envicted")
+ // .to("mock:envicted")
+ .when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.REMOVED))
+ .log("...removed")
+ .to("mock:removed")
+ .otherwise()
+ .log("fail!");
+]]></script>
+</div></div><p>Header Variables inside the response message:</p><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Name</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Type</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.listener.time</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>Long</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>time of the event in millis</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.listener.type</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the map consumer sets here "cachelistener"</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.listener.action</code></p><
/td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>type of event - here <strong>added</strong> and <strong>removed</strong> (and soon <strong>envicted</strong>)</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.objectId</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the oid of the object</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.cache.name</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the name of the cache - e.g. "foo"</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.cache.type</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" row
span="1" class="confluenceTd"><p>the type of the cache - here replicatedmap</p></td></tr></tbody></table></div><p>Eviction will be added as feature, soon (this is a Hazelcast issue).</p> <div class="aui-message problem shadowed information-macro">
+ <span class="aui-icon icon-problem">Icon</span>
+ <div class="message-content">
+ <p>Header variables have changed in Camel 2.8</p>
+ </div>
+ </div>
+<div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Name</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Type</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastListenerTime</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>Long</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>time of the event in millis <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastListenerType</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the map consumer sets here "cachelistener" <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr><tr
><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastListenerAction</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>type of event - here <strong>added</strong> and <strong>removed</strong> (and soon <strong>envicted</strong>) <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastObjectId</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the oid of the object <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastCacheName</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="co
nfluenceTd"><p>the name of the cache - e.g. "foo" <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastCacheType</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the type of the cache - here replicatedmap <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr></tbody></table></div> <h2 id="BookInOnePage-HDFSComponent">HDFS Component</h2><p><strong>Available as of Camel 2.8</strong></p><p>The <strong>hdfs</strong> component enables you to read and write messages from/to an HDFS file system. HDFS is the distributed file system at the heart of <a shape="rect" class="external-link" href="http://hadoop.apache.org">Hadoop</a>.</p><p>Maven users will need to add the following dependency to their <code>pom.xml</code> for this component:</p><div clas
s="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-hdfs</artifactId>
Modified: websites/production/camel/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.
Modified: websites/production/camel/content/hazelcast-component.html
==============================================================================
--- websites/production/camel/content/hazelcast-component.html (original)
+++ websites/production/camel/content/hazelcast-component.html Mon May 4 16:19:40 2015
@@ -108,7 +108,7 @@
<p>You have to use the second prefix to define which type of data store you want to use.</p>
</div>
</div>
-<h3 id="HazelcastComponent-Sections">Sections</h3><ol><li>Usage of <a shape="rect" href="#HazelcastComponent-map">#map</a></li><li>Usage of <a shape="rect" href="#HazelcastComponent-multimap">#multimap</a></li><li>Usage of <a shape="rect" href="#HazelcastComponent-queue">#queue</a></li><li>Usage of <a shape="rect" href="#HazelcastComponent-topic">#topic</a></li><li>Usage of <a shape="rect" href="#HazelcastComponent-list">#list</a></li><li>Usage of <a shape="rect" href="#HazelcastComponent-seda">#seda</a></li><li>Usage of <a shape="rect" href="#HazelcastComponent-atomicnumber">atomic number</a></li><li>Usage of <a shape="rect" href="#HazelcastComponent-cluster">#cluster</a> support (instance)</li></ol><p><span class="confluence-anchor-link" id="HazelcastComponent-map"></span></p><h3 id="HazelcastComponent-UsageofMap">Usage of Map</h3><h4 id="HazelcastComponent-mapcacheproducer-to("hazelcast:map:foo")">map cache producer - to("hazelcast:map:foo")</h4><p>If you want to store
a value in a map you can use the map cache producer. The map cache producer provides 5 operations (put, get, update, delete, query). For the first 4 you have to provide the operation inside the "hazelcast.operation.type" header variable. In Java DSL you can use the constants from <code>org.apache.camel.component.hazelcast.HazelcastConstants</code>.</p><p>Header Variables for the request message:</p><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Name</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Type</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.operation.type</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>valid values are: put, delete, get, update, query</p><p><strong>From Camel 2.16:</strong
> getAll, clear</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.objectId</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the object id to store / find your object inside the cache (not needed for the query operation)</p></td></tr></tbody></table></div> <div class="aui-message problem shadowed information-macro">
+<h3 id="HazelcastComponent-Sections">Sections</h3><ol><li>Usage of <a shape="rect" href="#HazelcastComponent-map">#map</a></li><li>Usage of <a shape="rect" href="#HazelcastComponent-multimap">#multimap</a></li><li>Usage of <a shape="rect" href="#HazelcastComponent-queue">#queue</a></li><li>Usage of <a shape="rect" href="#HazelcastComponent-topic">#topic</a></li><li>Usage of <a shape="rect" href="#HazelcastComponent-list">#list</a></li><li>Usage of <a shape="rect" href="#HazelcastComponent-seda">#seda</a></li><li>Usage of <a shape="rect" href="#HazelcastComponent-atomicnumber">atomic number</a></li><li>Usage of <a shape="rect" href="#HazelcastComponent-cluster">#cluster</a> support (instance)</li><li>Usage of <a shape="rect" href="#HazelcastComponent-replicatedmap">#replicatedmap</a> </li></ol><p><span class="confluence-anchor-link" id="HazelcastComponent-map"></span></p><h3 id="HazelcastComponent-UsageofMap">Usage of Map</h3><h4 id="HazelcastComponent-mapcacheproducer-to("
hazelcast:map:foo")">map cache producer - to("hazelcast:map:foo")</h4><p>If you want to store a value in a map you can use the map cache producer. The map cache producer provides 5 operations (put, get, update, delete, query). For the first 4 you have to provide the operation inside the "hazelcast.operation.type" header variable. In Java DSL you can use the constants from <code>org.apache.camel.component.hazelcast.HazelcastConstants</code>.</p><p>Header Variables for the request message:</p><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Name</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Type</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.operation.type</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="conflu
enceTd"><p>valid values are: put, delete, get, update, query</p><p><strong>From Camel 2.16:</strong> getAll, clear</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.objectId</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the object id to store / find your object inside the cache (not needed for the query operation)</p></td></tr></tbody></table></div> <div class="aui-message problem shadowed information-macro">
<span class="aui-icon icon-problem">Icon</span>
<div class="message-content">
<p>Header variables have changed in Camel 2.8</p>
@@ -670,7 +670,7 @@ template.sendBodyAndHeader("direct:
<p>Header variables have changed in Camel 2.8</p>
</div>
</div>
-<div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Name</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Type</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastListenerTime</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>Long</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>time of the event in millis <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastListenerType</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the map consumer sets here "instancelistener" <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr>
<tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastListenerActionn</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>type of event - here <strong>added</strong> or <strong>removed</strong>. <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastInstanceHost</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>host name of the instance <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastInstancePort</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>Integer</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>port n
umber of the instance <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr></tbody></table></div><h3 id="HazelcastComponent-Usinghazelcastreference">Using hazelcast reference</h3><h4 id="HazelcastComponent-Byitsname">By its name</h4><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Name</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Type</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastListenerTime</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>Long</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>time of the event in millis <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastListenerType</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the map consumer sets here "instancelistener" <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr>
<tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastListenerActionn</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>type of event - here <strong>added</strong> or <strong>removed</strong>. <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastInstanceHost</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>host name of the instance <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastInstancePort</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>Integer</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>port n
umber of the instance <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr></tbody></table></div><h3 id="HazelcastComponent-Usinghazelcastreference"><span style="line-height: 1.5625;">Using hazelcast reference</span></h3><h4 id="HazelcastComponent-Byitsname">By its name</h4><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[<bean id="hazelcastLifecycle" class="com.hazelcast.core.LifecycleService"
factory-bean="hazelcastInstance" factory-method="getLifecycleService"
destroy-method="shutdown" />
@@ -758,7 +758,87 @@ template.sendBodyAndHeader("direct:
<to uri="seda:out" />
</route>
</camelContext>]]></script>
-</div></div></div>
+</div></div><p><span class="confluence-anchor-link" id="HazelcastComponent-replicatedmap"></span></p><h3 id="HazelcastComponent-UsageofReplicatedmap">Usage of Replicated map</h3><p><strong>Avalaible from Camel 2.16</strong></p><h4 id="HazelcastComponent-replicatedmapcacheproducer-to("hazelcast:replicatedmap:foo")">replicatedmap cache producer - to("<a shape="rect" class="external-link" href="http://hazelcastreplicatedmapfoo" rel="nofollow">hazelcast:replicatedmap:foo</a>")</h4><p><span style="color: rgb(68,68,68);">A replicated map is a weakly consistent, distributed key-value data structure with no data partition</span>. The replicatedmap producer provides 4 operations (put, get, delete, clear).</p><p>Header Variables for the request message:</p><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Name</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Type</p></th><th colspan="1" rowspan="1" class=
"confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.operation.type</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>valid values are: put, get, delete, clear</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.objectId</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the object id to store / find your object inside the cache</p></td></tr></tbody></table></div> <div class="aui-message problem shadowed information-macro">
+ <span class="aui-icon icon-problem">Icon</span>
+ <div class="message-content">
+ <p>Header variables have changed in Camel 2.8</p>
+ </div>
+ </div>
+<div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Name</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Type</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastOperationType</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>valid values are: put, get, removevalue, delete <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastObjectId</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the object id to store / find your object inside the cache <strong><a shape="rect" class="unresolved" href="#">Versio
n 2.8</a></strong></p></td></tr></tbody></table></div><h5 id="HazelcastComponent-Sampleforput:.4">Sample for <strong>put</strong>:</h5><p>Java DSL:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[from("direct:put")
+.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.PUT_OPERATION))
+.to(String.format("hazelcast:%sbar", HazelcastConstants.REPLICATEDMAP_PREFIX));
+]]></script>
+</div></div><p>Spring DSL:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[<route>
+ <from uri="direct:put" />
+ <log message="put.."/>
+ <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
+ <setHeader headerName="hazelcast.operation.type">
+ <constant>put</constant>
+ </setHeader>
+ <to uri="hazelcast:replicatedmap:foo" />
+</route>]]></script>
+</div></div><h5 id="HazelcastComponent-Sampleforget:.5">Sample for <strong>get</strong>:</h5><p>Java DSL:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[from("direct:get")
+.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.GET_OPERATION))
+.toF("hazelcast:%sbar", HazelcastConstants.REPLICATEDMAP_PREFIX)
+.to("seda:out");
+]]></script>
+</div></div><p>Spring DSL:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[<route>
+ <from uri="direct:get" />
+ <log message="get.."/>
+ <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
+ <setHeader headerName="hazelcast.operation.type">
+ <constant>get</constant>
+ </setHeader>
+ <to uri="hazelcast:replicatedmap:foo" />
+ <to uri="seda:out" />
+</route>
+]]></script>
+</div></div><h5 id="HazelcastComponent-Samplefordelete:.3">Sample for <strong>delete</strong>:</h5><p>Java DSL:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[from("direct:delete")
+.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.DELETE_OPERATION))
+.toF("hazelcast:%sbar", HazelcastConstants.REPLICATEDMAP_PREFIX);
+]]></script>
+</div></div><p>Spring DSL:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[<route>
+ <from uri="direct:delete" />
+ <log message="delete.."/>
+ <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
+ <setHeader headerName="hazelcast.operation.type">
+ <constant>delete</constant>
+ </setHeader>
+ <to uri="hazelcast:replicatedmap:foo" />
+</route>
+]]></script>
+</div></div><p>you can call them in your test class with:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[template.sendBodyAndHeader("direct:[put|get|delete|clear]", "my-foo", HazelcastConstants.OBJECT_ID, "4711");
+]]></script>
+</div></div><h4 id="HazelcastComponent-replicatedmapcacheconsumer-from("hazelcast:replicatedmap:foo")">replicatedmap cache consumer - from("<a shape="rect" class="external-link" href="http://hazelcastreplicatedmapfoo" rel="nofollow">hazelcast:replicatedmap:foo</a>")</h4><p>For the multimap cache this component provides the same listeners / variables as for the map cache consumer (except the update and enviction listener). The only difference is the <strong>multimap</strong> prefix inside the URI. Here is a sample:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[fromF("hazelcast:%sbar", HazelcastConstants.MULTIMAP_PREFIX)
+.log("object...")
+.choice()
+ .when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.ADDED))
+ .log("...added")
+ .to("mock:added")
+ //.when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.ENVICTED))
+ // .log("...envicted")
+ // .to("mock:envicted")
+ .when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.REMOVED))
+ .log("...removed")
+ .to("mock:removed")
+ .otherwise()
+ .log("fail!");
+]]></script>
+</div></div><p>Header Variables inside the response message:</p><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Name</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Type</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.listener.time</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>Long</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>time of the event in millis</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.listener.type</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the map consumer sets here "cachelistener"</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.listener.action</code></p><
/td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>type of event - here <strong>added</strong> and <strong>removed</strong> (and soon <strong>envicted</strong>)</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.objectId</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the oid of the object</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.cache.name</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the name of the cache - e.g. "foo"</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>hazelcast.cache.type</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" row
span="1" class="confluenceTd"><p>the type of the cache - here replicatedmap</p></td></tr></tbody></table></div><p>Eviction will be added as feature, soon (this is a Hazelcast issue).</p> <div class="aui-message problem shadowed information-macro">
+ <span class="aui-icon icon-problem">Icon</span>
+ <div class="message-content">
+ <p>Header variables have changed in Camel 2.8</p>
+ </div>
+ </div>
+<div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Name</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Type</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastListenerTime</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>Long</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>time of the event in millis <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastListenerType</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the map consumer sets here "cachelistener" <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr><tr
><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastListenerAction</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>type of event - here <strong>added</strong> and <strong>removed</strong> (and soon <strong>envicted</strong>) <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastObjectId</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the oid of the object <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastCacheName</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="co
nfluenceTd"><p>the name of the cache - e.g. "foo" <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelHazelcastCacheType</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>the type of the cache - here replicatedmap <strong><a shape="rect" class="unresolved" href="#">Version 2.8</a></strong></p></td></tr></tbody></table></div></div>
</td>
<td valign="top">
<div class="navigation">