camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache Camel > JGroups
Date Sun, 14 Oct 2012 02:11:00 GMT
<html>
<head>
    <base href="https://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/2042/9/1/_/styles/combined.css?spaceKey=CAMEL&amp;forWysiwyg=true"
type="text/css">
    </head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="https://cwiki.apache.org/confluence/display/CAMEL/JGroups">JGroups</a></h2>
    <h4>Page <b>edited</b> by             <a href="https://cwiki.apache.org/confluence/display/~hekonsek">Henryk
Konsek</a>
    </h4>
        <br/>
                         <h4>Changes (2)</h4>
                                 
    
<div id="page-diffs">
                    <table class="diff" cellpadding="0" cellspacing="0">
    
            <tr><td class="diff-unchanged" >h2. JGroups Component <br> <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">*Available
since Camel 2.10.0* <br> <br></td></tr>
            <tr><td class="diff-unchanged" >[JGroups|http://www.jgroups.org] is
a toolkit for reliable multicast communication. The *jgroups:* component provides exchange
of messages between Camel infrastructure and JGroups clusters. <br> <br></td></tr>
            <tr><td class="diff-snipped" >...<br></td></tr>
            <tr><td class="diff-unchanged" > <br>|| Name || Default Value
|| Description || <br></td></tr>
            <tr><td class="diff-changed-lines" >| {{channelProperties}} | {{null}}
| *Camel <span class="diff-changed-words">2.10<span class="diff-added-chars"style="background-color:
#dfd;">.0</span>:*</span> Specifies configuration properties of the [JChannel
|http://www.jgroups.org/javadoc/org/jgroups/JChannel.html] used by the endpoint.| <br></td></tr>
            <tr><td class="diff-unchanged" > <br>h3. Usage <br></td></tr>
            <tr><td class="diff-snipped" >...<br></td></tr>
    
            </table>
    </div>                            <h4>Full Content</h4>
                    <div class="notificationGreySide">
        <h2><a name="JGroups-JGroupsComponent"></a>JGroups Component</h2>

<p><b>Available since Camel 2.10.0</b></p>

<p><a href="http://www.jgroups.org" class="external-link" rel="nofollow">JGroups</a>
is a toolkit for reliable multicast communication. The <b>jgroups:</b> component
provides exchange of messages between Camel infrastructure and JGroups clusters.</p>

<p>Maven users will need to add the following dependency to their <tt>pom.xml</tt>
for this component:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-xml">
<span class="code-tag">&lt;dependency&gt;</span>
    <span class="code-tag">&lt;groupId&gt;</span>org.apache-extra.camel<span
class="code-tag">&lt;/groupId&gt;</span>
    <span class="code-tag">&lt;artifactId&gt;</span>camel-jgroups<span
class="code-tag">&lt;/artifactId&gt;</span>
    <span class="code-tag">&lt;version&gt;</span>x.x.x<span class="code-tag">&lt;/version&gt;</span>
    <span class="code-tag"><span class="code-comment">&lt;!-- use the same
version as your Camel core version --&gt;</span></span>
<span class="code-tag">&lt;/dependency&gt;</span>
</pre>
</div></div>

<h3><a name="JGroups-URIformat"></a>URI format</h3>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
jgroups:clusterName[?options]
</pre>
</div></div>
<p>Where <b>clusterName</b> represents the name of the JGroups cluster the
component should connect to.</p>

<h3><a name="JGroups-Options"></a>Options</h3>

<div class='table-wrap'>
<table class='confluenceTable'><tbody>
<tr>
<th class='confluenceTh'> Name </th>
<th class='confluenceTh'> Default Value </th>
<th class='confluenceTh'> Description </th>
</tr>
<tr>
<td class='confluenceTd'> <tt>channelProperties</tt> </td>
<td class='confluenceTd'> <tt>null</tt> </td>
<td class='confluenceTd'> <b>Camel 2.10.0:</b> Specifies configuration properties
of the <a href="http://www.jgroups.org/javadoc/org/jgroups/JChannel.html" class="external-link"
rel="nofollow">JChannel </a> used by the endpoint.</td>
</tr>
</tbody></table>
</div>


<h3><a name="JGroups-Usage"></a>Usage</h3>

<p>Using <tt>jgroups</tt> component on the consumer side of the route will
capture messages received by the <tt>JChannel</tt> associated with the endpoint
and forward them to the Camel route. JGroups consumer processes incoming messages <a href="http://camel.apache.org/asynchronous-routing-engine.html"
class="external-link" rel="nofollow">asynchronously</a>. </p>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
<span class="code-comment">// Capture messages from cluster named
</span><span class="code-comment">// 'clusterName' and send them to Camel route.
</span>from(<span class="code-quote">"jgroups:clusterName"</span>).to(<span
class="code-quote">"seda:queue"</span>);
</pre>
</div></div>

<p>Using <tt>jgroups</tt> component on the producer side of the route will
forward body of the Camel exchanges to the <tt>JChannel</tt> instance managed
by the endpoint.</p>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
<span class="code-comment">// Send message to the cluster named 'clusterName'
</span>from(<span class="code-quote">"direct:start"</span>).to(<span
class="code-quote">"jgroups:clusterName"</span>);
</pre>
</div></div>
    </div>
        <div id="commentsSection" class="wiki-content pageSection">
        <div style="float: right;">
            <a href="https://cwiki.apache.org/confluence/users/viewnotifications.action"
class="grey">Change Notification Preferences</a>
        </div>
        <a href="https://cwiki.apache.org/confluence/display/CAMEL/JGroups">View Online</a>
        |
        <a href="https://cwiki.apache.org/confluence/pages/diffpagesbyversion.action?pageId=30737348&revisedVersion=3&originalVersion=2">View
Changes</a>
                |
        <a href="https://cwiki.apache.org/confluence/display/CAMEL/JGroups?showComments=true&amp;showCommentArea=true#addcomment">Add
Comment</a>
            </div>
</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message