camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache Camel > Event Driven Consumer
Date Fri, 03 Aug 2012 19:21: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/Event+Driven+Consumer">Event
Driven Consumer</a></h2>
    <h4>Page <b>edited</b> by             <a href="https://cwiki.apache.org/confluence/display/~bvahdat">Babak
Vahdat</a>
    </h4>
        <br/>
                         <h4>Changes (2)</h4>
                                 
    
<div id="page-diffs">
                    <table class="diff" cellpadding="0" cellspacing="0">
    
            <tr><td class="diff-unchanged" >h3. Event Driven Consumer <br>
<br></td></tr>
            <tr><td class="diff-changed-lines" >Camel supports the [Event Driven
<span class="diff-deleted-words"style="color:#999;background-color:#fdd;text-decoration:line-through;">Consumer|http://www.eaipatterns.com/EventDrivenConsumer.html]</span>
<span class="diff-added-words"style="background-color: #dfd;">Consumer|http://www.enterpriseintegrationpatterns.com/EventDrivenConsumer.html]</span>
from the [EIP patterns|Enterprise Integration Patterns]. The default consumer model is event
based (i.e. asynchronous) as this means that the Camel container can then manage pooling,
threading and concurrency for you in a declarative manner. <br></td></tr>
            <tr><td class="diff-unchanged" > <br></td></tr>
            <tr><td class="diff-changed-lines" ><span class="diff-deleted-words"style="color:#999;background-color:#fdd;text-decoration:line-through;">!http://www.eaipatterns.com/img/EventDrivenConsumerSolution.gif!</span>
<span class="diff-added-words"style="background-color: #dfd;">!http://www.enterpriseintegrationpatterns.com/img/EventDrivenConsumerSolution.gif!</span>
<br></td></tr>
            <tr><td class="diff-unchanged" > <br>The Event Driven Consumer
is implemented by consumers implementing the [Processor|http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/Processor.html]
interface which is invoked by the [Message Endpoint] when a [Message] is available for processing.
<br></td></tr>
            <tr><td class="diff-snipped" >...<br></td></tr>
    
            </table>
    </div>                            <h4>Full Content</h4>
                    <div class="notificationGreySide">
        <h3><a name="EventDrivenConsumer-EventDrivenConsumer"></a>Event
Driven Consumer</h3>

<p>Camel supports the <a href="http://www.enterpriseintegrationpatterns.com/EventDrivenConsumer.html"
class="external-link" rel="nofollow">Event Driven Consumer</a> from the <a href="/confluence/display/CAMEL/Enterprise+Integration+Patterns"
title="Enterprise Integration Patterns">EIP patterns</a>. The default consumer model
is event based (i.e. asynchronous) as this means that the Camel container can then manage
pooling, threading and concurrency for you in a declarative manner.</p>

<p><span class="image-wrap" style=""><img src="http://www.enterpriseintegrationpatterns.com/img/EventDrivenConsumerSolution.gif"
style="border: 0px solid black" /></span></p>

<p>The Event Driven Consumer is implemented by consumers implementing the <a href="http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/Processor.html"
class="external-link" rel="nofollow">Processor</a> interface which is invoked by
the <a href="/confluence/display/CAMEL/Message+Endpoint" title="Message Endpoint">Message
Endpoint</a> when a <a href="/confluence/display/CAMEL/Message" title="Message">Message</a>
is available for processing.</p>

<p>For more details see</p>

<ul>
	<li><a href="/confluence/display/CAMEL/Message" title="Message">Message</a></li>
	<li><a href="/confluence/display/CAMEL/Message+Endpoint" title="Message Endpoint">Message
Endpoint</a></li>
</ul>


<h4><a name="EventDrivenConsumer-UsingThisPattern"></a>Using This Pattern</h4>

<p>If you would like to use this EIP Pattern then please read the <a href="/confluence/display/CAMEL/Getting+Started"
title="Getting Started">Getting Started</a>, you may also find the <a href="/confluence/display/CAMEL/Architecture"
title="Architecture">Architecture</a> useful particularly the description of <a
href="/confluence/display/CAMEL/Endpoint" title="Endpoint">Endpoint</a> and <a
href="/confluence/display/CAMEL/URIs" title="URIs">URIs</a>. Then you could try out
some of the <a href="/confluence/display/CAMEL/Examples" title="Examples">Examples</a>
first before trying this pattern out.</p>
    </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/Event+Driven+Consumer">View
Online</a>
        |
        <a href="https://cwiki.apache.org/confluence/pages/diffpagesbyversion.action?pageId=49448&revisedVersion=6&originalVersion=5">View
Changes</a>
                |
        <a href="https://cwiki.apache.org/confluence/display/CAMEL/Event+Driven+Consumer?showComments=true&amp;showCommentArea=true#addcomment">Add
Comment</a>
            </div>
</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message