camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r1009791 - in /websites/production/camel/content: book-component-appendix.html book-in-one-page.html cache/main.pageCache direct.html
Date Tue, 04 Apr 2017 17:19:28 GMT
Author: buildbot
Date: Tue Apr  4 17:19:27 2017
New Revision: 1009791

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/direct.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 Tue Apr  4 17:19:27 2017
@@ -1011,11 +1011,11 @@ template.send("direct:alias-verify&
 ]]></script>
 </div></div><p></p><h3 id="BookComponentAppendix-SeeAlso.8">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><ul><li><a shape="rect" href="crypto.html">Crypto</a>
Crypto is also available as a <a shape="rect" href="data-format.html">Data Format</a></li></ul>
<h2 id="BookComponentAppendix-CXFComponent">CXF Component</h2><div class="confluence-information-macro
confluence-information-macro-note"><span class="aui-icon aui-icon-small aui-iconfont-warning
confluence-information-macro-icon"></span><div class="confluence-information-macro-body"><p>When
using CXF as a consumer, the <a shape="rect" href="cxf-bean-component.html">CXF Bean
Component</a> allows you to factor out how message payloads are received from their
processing as a RESTful or SOAP web service. This has the potential of using a multitude of
transports to cons
 ume web services. The bean component's configuration is also simpler and provides the fastest
method to implement web services using Camel and CXF.</p></div></div><div
class="confluence-information-macro confluence-information-macro-tip"><span class="aui-icon
aui-icon-small aui-iconfont-approve confluence-information-macro-icon"></span><div
class="confluence-information-macro-body"><p>When using CXF in streaming modes (see
DataFormat option), then also read about <a shape="rect" href="stream-caching.html">Stream
caching</a>.</p></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.rbtoc1490620872780 {padding: 0px;}
-div.rbtoc1490620872780 ul {list-style: disc;margin-left: 0px;}
-div.rbtoc1490620872780 li {margin-left: 0px;padding-left: 0px;}
+div.rbtoc1491326280510 {padding: 0px;}
+div.rbtoc1491326280510 ul {list-style: disc;margin-left: 0px;}
+div.rbtoc1491326280510 li {margin-left: 0px;padding-left: 0px;}
 
-/*]]>*/</style></p><div class="toc-macro rbtoc1490620872780">
+/*]]>*/</style></p><div class="toc-macro rbtoc1491326280510">
 <ul class="toc-indentation"><li><a shape="rect" href="#BookComponentAppendix-CXFComponent">CXF
Component</a>
 <ul class="toc-indentation"><li><a shape="rect" href="#BookComponentAppendix-URIformat">URI
format</a></li><li><a shape="rect" href="#BookComponentAppendix-Options">Options</a>
 <ul class="toc-indentation"><li><a shape="rect" href="#BookComponentAppendix-Thedescriptionsofthedataformats">The
descriptions of the dataformats</a>
@@ -1951,13 +1951,13 @@ db4o:className[?options]
 
 
 <h3 id="BookComponentAppendix-SeeAlso.11">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> <h2 id="BookComponentAppendix-DirectComponent">Direct
Component</h2><p>The <strong>direct:</strong> component provides direct,
synchronous invocation of any consumers when a producer sends a message exchange.<br clear="none">
This endpoint can be used to connect existing routes in the <strong>same</strong>
camel context.</p><div class="confluence-information-macro confluence-information-macro-tip"><p
class="title">Asynchronous</p><span class="aui-icon aui-icon-small aui-iconfont-approve
confluence-information-macro-icon"></span><div class="confluence-information-macro-body"><p>The
<a shape="rect" href="seda.html">SEDA</a> component provides asynchronous invocation
of any consumers when a producer sends a message
  exchange.</p></div></div><div class="confluence-information-macro confluence-information-macro-tip"><p
class="title">Connection to other camel contexts</p><span class="aui-icon aui-icon-small
aui-iconfont-approve confluence-information-macro-icon"></span><div class="confluence-information-macro-body"><p>The
<a shape="rect" href="vm.html">VM</a> component provides connections between Camel
contexts as long they run in the same <strong>JVM</strong>.</p></div></div><h3
id="BookComponentAppendix-URIformat.15">URI format</h3><div class="code panel
pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<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> <h2 id="BookComponentAppendix-DirectComponent">Direct
Component</h2><p>The <strong><code>direct:</code></strong>
component provides direct, synchronous invocation of any consumers when a producer sends a
message exchange. This endpoint can be used to connect existing routes in the <strong>same</strong>
camel context.</p><div class="confluence-information-macro confluence-information-macro-tip"><p
class="title">Asynchronous</p><span class="aui-icon aui-icon-small aui-iconfont-approve
confluence-information-macro-icon"></span><div class="confluence-information-macro-body"><p>The
<a shape="rect" href="seda.html">SEDA</a> component provides asynchronous invocation
of any consumers when a producer sends a message exc
 hange.</p></div></div><div class="confluence-information-macro confluence-information-macro-tip"><p
class="title">Connection to other camel contexts</p><span class="aui-icon aui-icon-small
aui-iconfont-approve confluence-information-macro-icon"></span><div class="confluence-information-macro-body"><p>The
<a shape="rect" href="vm.html">VM</a> component provides connections between Camel
contexts as long they run in the same <strong>JVM</strong>.</p></div></div><h3
id="BookComponentAppendix-URIformat.15">URI format</h3><div class="code panel
pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
 <script class="brush: text; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[direct:someName[?options]
 ]]></script>
-</div></div><p>Where <strong>someName</strong> can be any string
to uniquely identify the endpoint</p><h3 id="BookComponentAppendix-Options.12">Options</h3><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>Default Value</p></th><th colspan="1" rowspan="1"
class="confluenceTh"><p>Description</p></th><th colspan="1" rowspan="1"
class="confluenceTh">&#160;</th></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p><code>allowMultipleConsumers</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>true</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><strong>@deprecated</strong>
If set to <code>false</code>, then when a second consumer is started on the endpoint,
an <code>IllegalStateException</code> is thrown. <strong>Will be removed
in Camel 2.1:</strong> Direct endpoint does not support multiple consumers.</p></
 td><td colspan="1" rowspan="1" class="confluenceTd">&#160;</td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>block</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.11.1:</strong>
If sending a message to a direct endpoint which has no active consumer, then we can tell the
producer to block and wait for the consumer to become active.</p></td><td colspan="1"
rowspan="1" class="confluenceTd">&#160;</td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p><code>timeout</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>30000</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.11.1:</strong>
The timeout value to use if block is enabled.</p></td><td colspan="1" rowspan="1"
class="confluenceTd">&#160;</td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p><code>failIfNoConsumers</code></p>
 </td><td colspan="1" rowspan="1" class="confluenceTd"><p>true</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.16.0</strong>:
Indicates whether the producer should fail by throwing an exception when sending to a DIRECT
endpoint with no active consumers.</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>&#160;</p></td></tr></tbody></table></div><pre>You
can append query options to the URI in the following format, ?option=value&amp;option=value&amp;...</pre><p>&#160;</p><h3
id="BookComponentAppendix-Samples.1">Samples</h3><p>In the route below we use
the direct component to link the two routes together:</p><div class="code panel pdl"
style="border-width: 1px;"><div class="codeContent panelContent pdl">
+</div></div><p>Where <strong><code>someName</code></strong>
can be any string that uniquely identifies the endpoint.</p><h3 id="BookComponentAppendix-Options.12">Options</h3><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>Default Value</p></th><th colspan="1" rowspan="1"
class="confluenceTh"><p>Description</p></th></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>allowMultipleConsumers</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>true</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><strong><span style="color:
rgb(255,0,0);">@deprecated </span></strong></p><p>If set to <strong><code>false</code></strong>,
then when a second consumer is started on the endpoint, an <strong><code>IllegalStateException</code></strong>
is thrown. </p><p><strong>Will be removed in Camel 2.1:</strong> Direct
end
 point does not support multiple consumers.</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>block</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.11.1:</strong>
If sending a message to a direct endpoint which has no active consumer, the producer will
block for&#160;<strong><code>timeout</code></strong> milliseconds
waiting for a consumer to become active.</p></td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p><code>timeout</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>30000</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.11.1:</strong>
The timeout value, in milliseconds, to block, when enabled, for an active consumer.</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>failIfNoConsumers</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd
 "><p><code>true</code></p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p><strong>Camel 2.16.0</strong>: Indicates whether
the producer should fail by throwing an exception when sending to a&#160;<strong><code>direct</code></strong>
endpoint with no active consumers.</p></td></tr></tbody></table></div><p>You
can append query options to the URI in the following format:&#160;<strong><code>?option=value&amp;option=value&amp;...</code></strong></p><p>&#160;</p><h3
id="BookComponentAppendix-Samples.1">Samples</h3><p>In the route below we use
the direct component to link the two routes together:</p><div class="code panel pdl"
style="border-width: 1px;"><div class="codeContent panelContent pdl">
 <script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[from(&quot;activemq:queue:order.in&quot;)
     .to(&quot;bean:orderServer?method=validate&quot;)
-    .to(&quot;direct:processOrder&quot;);
+    .to(&quot;direct:processOrder?block=true&amp;timeout=5000&quot;);
 
 from(&quot;direct:processOrder&quot;)
     .to(&quot;bean:orderService?method=process&quot;)
@@ -1967,7 +1967,7 @@ from(&quot;direct:processOrder&quot;)
 <script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
  &lt;route&gt;
      &lt;from uri=&quot;activemq:queue:order.in&quot;/&gt;
      &lt;to uri=&quot;bean:orderService?method=validate&quot;/&gt;
-     &lt;to uri=&quot;direct:processOrder&quot;/&gt;
+     &lt;to uri=&quot;direct:processOrder?failIfNoConsumers=false&quot;/&gt;
   &lt;/route&gt;
 
   &lt;route&gt;

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 Tue Apr  4 17:19:27 2017
@@ -3545,11 +3545,11 @@ The tutorial has been designed in two pa
 While not actual tutorials you might find working through the source of the various <a
shape="rect" href="examples.html">Examples</a> useful.</li></ul>
 
 <h2 id="BookInOnePage-TutorialonSpringRemotingwithJMS">Tutorial on Spring Remoting
with JMS</h2><p>&#160;</p><div class="confluence-information-macro
confluence-information-macro-information"><p class="title">Thanks</p><span
class="aui-icon aui-icon-small aui-iconfont-info confluence-information-macro-icon"></span><div
class="confluence-information-macro-body"><p>This tutorial was kindly donated to
Apache Camel by Martin Gilday.</p></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.rbtoc1490620807376 {padding: 0px;}
-div.rbtoc1490620807376 ul {list-style: disc;margin-left: 0px;}
-div.rbtoc1490620807376 li {margin-left: 0px;padding-left: 0px;}
+div.rbtoc1491326291909 {padding: 0px;}
+div.rbtoc1491326291909 ul {list-style: disc;margin-left: 0px;}
+div.rbtoc1491326291909 li {margin-left: 0px;padding-left: 0px;}
 
-/*]]>*/</style></p><div class="toc-macro rbtoc1490620807376">
+/*]]>*/</style></p><div class="toc-macro rbtoc1491326291909">
 <ul class="toc-indentation"><li><a shape="rect" href="#BookInOnePage-TutorialonSpringRemotingwithJMS">Tutorial
on Spring Remoting with JMS</a></li><li><a shape="rect" href="#BookInOnePage-Preface">Preface</a></li><li><a
shape="rect" href="#BookInOnePage-Prerequisites">Prerequisites</a></li><li><a
shape="rect" href="#BookInOnePage-Distribution">Distribution</a></li><li><a
shape="rect" href="#BookInOnePage-About">About</a></li><li><a shape="rect"
href="#BookInOnePage-CreatetheCamelProject">Create the Camel Project</a>
 <ul class="toc-indentation"><li><a shape="rect" href="#BookInOnePage-UpdatethePOMwithDependencies">Update
the POM with Dependencies</a></li></ul>
 </li><li><a shape="rect" href="#BookInOnePage-WritingtheServer">Writing
the Server</a>
@@ -5664,11 +5664,11 @@ So we completed the last piece in the pi
 <p>This example has been removed from <strong>Camel 2.9</strong> onwards.
Apache Axis 1.4 is a very old and unsupported framework. We encourage users to use <a shape="rect"
href="cxf.html">CXF</a> instead of Axis.</p></div></div>
 
 <style type="text/css">/*<![CDATA[*/
-div.rbtoc1490620808419 {padding: 0px;}
-div.rbtoc1490620808419 ul {list-style: disc;margin-left: 0px;}
-div.rbtoc1490620808419 li {margin-left: 0px;padding-left: 0px;}
+div.rbtoc1491326292757 {padding: 0px;}
+div.rbtoc1491326292757 ul {list-style: disc;margin-left: 0px;}
+div.rbtoc1491326292757 li {margin-left: 0px;padding-left: 0px;}
 
-/*]]>*/</style><div class="toc-macro rbtoc1490620808419">
+/*]]>*/</style><div class="toc-macro rbtoc1491326292757">
 <ul class="toc-indentation"><li><a shape="rect" href="#BookInOnePage-TutorialusingAxis1.4withApacheCamel">Tutorial
using Axis 1.4 with Apache Camel</a>
 <ul class="toc-indentation"><li><a shape="rect" href="#BookInOnePage-Prerequisites">Prerequisites</a></li><li><a
shape="rect" href="#BookInOnePage-Distribution">Distribution</a></li><li><a
shape="rect" href="#BookInOnePage-Introduction">Introduction</a></li><li><a
shape="rect" href="#BookInOnePage-SettinguptheprojecttorunAxis">Setting up the project
to run Axis</a>
 <ul class="toc-indentation"><li><a shape="rect" href="#BookInOnePage-Maven2">Maven
2</a></li><li><a shape="rect" href="#BookInOnePage-wsdl">wsdl</a></li><li><a
shape="rect" href="#BookInOnePage-ConfiguringAxis">Configuring Axis</a></li><li><a
shape="rect" href="#BookInOnePage-RunningtheExample">Running the Example</a></li></ul>
@@ -16869,11 +16869,11 @@ template.send(&quot;direct:alias-verify&
 ]]></script>
 </div></div><p></p><h3 id="BookInOnePage-SeeAlso.28">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><ul><li><a shape="rect" href="crypto.html">Crypto</a>
Crypto is also available as a <a shape="rect" href="data-format.html">Data Format</a></li></ul>
<h2 id="BookInOnePage-CXFComponent">CXF Component</h2><div class="confluence-information-macro
confluence-information-macro-note"><span class="aui-icon aui-icon-small aui-iconfont-warning
confluence-information-macro-icon"></span><div class="confluence-information-macro-body"><p>When
using CXF as a consumer, the <a shape="rect" href="cxf-bean-component.html">CXF Bean
Component</a> allows you to factor out how message payloads are received from their
processing as a RESTful or SOAP web service. This has the potential of using a multitude of
transports to consume web 
 services. The bean component's configuration is also simpler and provides the fastest method
to implement web services using Camel and CXF.</p></div></div><div class="confluence-information-macro
confluence-information-macro-tip"><span class="aui-icon aui-icon-small aui-iconfont-approve
confluence-information-macro-icon"></span><div class="confluence-information-macro-body"><p>When
using CXF in streaming modes (see DataFormat option), then also read about <a shape="rect"
href="stream-caching.html">Stream caching</a>.</p></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.rbtoc1490620815443 {padding: 0px;}
-div.rbtoc1490620815443 ul {list-style: disc;margin-left: 0px;}
-div.rbtoc1490620815443 li {margin-left: 0px;padding-left: 0px;}
+div.rbtoc1491326295833 {padding: 0px;}
+div.rbtoc1491326295833 ul {list-style: disc;margin-left: 0px;}
+div.rbtoc1491326295833 li {margin-left: 0px;padding-left: 0px;}
 
-/*]]>*/</style></p><div class="toc-macro rbtoc1490620815443">
+/*]]>*/</style></p><div class="toc-macro rbtoc1491326295833">
 <ul class="toc-indentation"><li><a shape="rect" href="#BookInOnePage-CXFComponent">CXF
Component</a>
 <ul class="toc-indentation"><li><a shape="rect" href="#BookInOnePage-URIformat">URI
format</a></li><li><a shape="rect" href="#BookInOnePage-Options">Options</a>
 <ul class="toc-indentation"><li><a shape="rect" href="#BookInOnePage-Thedescriptionsofthedataformats">The
descriptions of the dataformats</a>
@@ -17809,13 +17809,13 @@ db4o:className[?options]
 
 
 <h3 id="BookInOnePage-SeeAlso.31">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> <h2 id="BookInOnePage-DirectComponent">Direct
Component</h2><p>The <strong>direct:</strong> component provides direct,
synchronous invocation of any consumers when a producer sends a message exchange.<br clear="none">
This endpoint can be used to connect existing routes in the <strong>same</strong>
camel context.</p><div class="confluence-information-macro confluence-information-macro-tip"><p
class="title">Asynchronous</p><span class="aui-icon aui-icon-small aui-iconfont-approve
confluence-information-macro-icon"></span><div class="confluence-information-macro-body"><p>The
<a shape="rect" href="seda.html">SEDA</a> component provides asynchronous invocation
of any consumers when a producer sends a message exchang
 e.</p></div></div><div class="confluence-information-macro confluence-information-macro-tip"><p
class="title">Connection to other camel contexts</p><span class="aui-icon aui-icon-small
aui-iconfont-approve confluence-information-macro-icon"></span><div class="confluence-information-macro-body"><p>The
<a shape="rect" href="vm.html">VM</a> component provides connections between Camel
contexts as long they run in the same <strong>JVM</strong>.</p></div></div><h3
id="BookInOnePage-URIformat.16">URI format</h3><div class="code panel pdl" style="border-width:
1px;"><div class="codeContent panelContent pdl">
+<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> <h2 id="BookInOnePage-DirectComponent">Direct
Component</h2><p>The <strong><code>direct:</code></strong>
component provides direct, synchronous invocation of any consumers when a producer sends a
message exchange. This endpoint can be used to connect existing routes in the <strong>same</strong>
camel context.</p><div class="confluence-information-macro confluence-information-macro-tip"><p
class="title">Asynchronous</p><span class="aui-icon aui-icon-small aui-iconfont-approve
confluence-information-macro-icon"></span><div class="confluence-information-macro-body"><p>The
<a shape="rect" href="seda.html">SEDA</a> component provides asynchronous invocation
of any consumers when a producer sends a message exchange.</
 p></div></div><div class="confluence-information-macro confluence-information-macro-tip"><p
class="title">Connection to other camel contexts</p><span class="aui-icon aui-icon-small
aui-iconfont-approve confluence-information-macro-icon"></span><div class="confluence-information-macro-body"><p>The
<a shape="rect" href="vm.html">VM</a> component provides connections between Camel
contexts as long they run in the same <strong>JVM</strong>.</p></div></div><h3
id="BookInOnePage-URIformat.16">URI format</h3><div class="code panel pdl" style="border-width:
1px;"><div class="codeContent panelContent pdl">
 <script class="brush: text; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[direct:someName[?options]
 ]]></script>
-</div></div><p>Where <strong>someName</strong> can be any string
to uniquely identify the endpoint</p><h3 id="BookInOnePage-Options.33">Options</h3><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>Default Value</p></th><th colspan="1" rowspan="1"
class="confluenceTh"><p>Description</p></th><th colspan="1" rowspan="1"
class="confluenceTh">&#160;</th></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p><code>allowMultipleConsumers</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>true</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><strong>@deprecated</strong>
If set to <code>false</code>, then when a second consumer is started on the endpoint,
an <code>IllegalStateException</code> is thrown. <strong>Will be removed
in Camel 2.1:</strong> Direct endpoint does not support multiple consumers.</p></td><td
c
 olspan="1" rowspan="1" class="confluenceTd">&#160;</td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>block</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.11.1:</strong>
If sending a message to a direct endpoint which has no active consumer, then we can tell the
producer to block and wait for the consumer to become active.</p></td><td colspan="1"
rowspan="1" class="confluenceTd">&#160;</td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p><code>timeout</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>30000</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.11.1:</strong>
The timeout value to use if block is enabled.</p></td><td colspan="1" rowspan="1"
class="confluenceTd">&#160;</td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p><code>failIfNoConsumers</code></p></td><td
  colspan="1" rowspan="1" class="confluenceTd"><p>true</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.16.0</strong>:
Indicates whether the producer should fail by throwing an exception when sending to a DIRECT
endpoint with no active consumers.</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>&#160;</p></td></tr></tbody></table></div><pre>You
can append query options to the URI in the following format, ?option=value&amp;option=value&amp;...</pre><p>&#160;</p><h3
id="BookInOnePage-Samples.7">Samples</h3><p>In the route below we use the direct
component to link the two routes together:</p><div class="code panel pdl" style="border-width:
1px;"><div class="codeContent panelContent pdl">
+</div></div><p>Where <strong><code>someName</code></strong>
can be any string that uniquely identifies the endpoint.</p><h3 id="BookInOnePage-Options.33">Options</h3><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>Default Value</p></th><th colspan="1" rowspan="1"
class="confluenceTh"><p>Description</p></th></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>allowMultipleConsumers</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>true</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><strong><span style="color:
rgb(255,0,0);">@deprecated </span></strong></p><p>If set to <strong><code>false</code></strong>,
then when a second consumer is started on the endpoint, an <strong><code>IllegalStateException</code></strong>
is thrown. </p><p><strong>Will be removed in Camel 2.1:</strong> Direct
endpoint do
 es not support multiple consumers.</p></td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p><code>block</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.11.1:</strong>
If sending a message to a direct endpoint which has no active consumer, the producer will
block for&#160;<strong><code>timeout</code></strong> milliseconds
waiting for a consumer to become active.</p></td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p><code>timeout</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>30000</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.11.1:</strong>
The timeout value, in milliseconds, to block, when enabled, for an active consumer.</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>failIfNoConsumers</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><co
 de>true</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel
2.16.0</strong>: Indicates whether the producer should fail by throwing an exception
when sending to a&#160;<strong><code>direct</code></strong> endpoint
with no active consumers.</p></td></tr></tbody></table></div><p>You
can append query options to the URI in the following format:&#160;<strong><code>?option=value&amp;option=value&amp;...</code></strong></p><p>&#160;</p><h3
id="BookInOnePage-Samples.7">Samples</h3><p>In the route below we use the direct
component to link the two routes together:</p><div class="code panel pdl" style="border-width:
1px;"><div class="codeContent panelContent pdl">
 <script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[from(&quot;activemq:queue:order.in&quot;)
     .to(&quot;bean:orderServer?method=validate&quot;)
-    .to(&quot;direct:processOrder&quot;);
+    .to(&quot;direct:processOrder?block=true&amp;timeout=5000&quot;);
 
 from(&quot;direct:processOrder&quot;)
     .to(&quot;bean:orderService?method=process&quot;)
@@ -17825,7 +17825,7 @@ from(&quot;direct:processOrder&quot;)
 <script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
  &lt;route&gt;
      &lt;from uri=&quot;activemq:queue:order.in&quot;/&gt;
      &lt;to uri=&quot;bean:orderService?method=validate&quot;/&gt;
-     &lt;to uri=&quot;direct:processOrder&quot;/&gt;
+     &lt;to uri=&quot;direct:processOrder?failIfNoConsumers=false&quot;/&gt;
   &lt;/route&gt;
 
   &lt;route&gt;

Modified: websites/production/camel/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.

Modified: websites/production/camel/content/direct.html
==============================================================================
--- websites/production/camel/content/direct.html (original)
+++ websites/production/camel/content/direct.html Tue Apr  4 17:19:27 2017
@@ -86,13 +86,13 @@
 	<tbody>
         <tr>
         <td valign="top" width="100%">
-<div class="wiki-content maincontent"><h2 id="Direct-DirectComponent">Direct
Component</h2><p>The <strong>direct:</strong> component provides direct,
synchronous invocation of any consumers when a producer sends a message exchange.<br clear="none">
This endpoint can be used to connect existing routes in the <strong>same</strong>
camel context.</p><div class="confluence-information-macro confluence-information-macro-tip"><p
class="title">Asynchronous</p><span class="aui-icon aui-icon-small aui-iconfont-approve
confluence-information-macro-icon"></span><div class="confluence-information-macro-body"><p>The
<a shape="rect" href="seda.html">SEDA</a> component provides asynchronous invocation
of any consumers when a producer sends a message exchange.</p></div></div><div
class="confluence-information-macro confluence-information-macro-tip"><p class="title">Connection
to other camel contexts</p><span class="aui-icon aui-icon-small aui-iconfont-approve
confluence-information-macro-icon"></sp
 an><div class="confluence-information-macro-body"><p>The <a shape="rect"
href="vm.html">VM</a> component provides connections between Camel contexts as long
they run in the same <strong>JVM</strong>.</p></div></div><h3
id="Direct-URIformat">URI format</h3><div class="code panel pdl" style="border-width:
1px;"><div class="codeContent panelContent pdl">
+<div class="wiki-content maincontent"><h2 id="Direct-DirectComponent">Direct
Component</h2><p>The <strong><code>direct:</code></strong>
component provides direct, synchronous invocation of any consumers when a producer sends a
message exchange. This endpoint can be used to connect existing routes in the <strong>same</strong>
camel context.</p><div class="confluence-information-macro confluence-information-macro-tip"><p
class="title">Asynchronous</p><span class="aui-icon aui-icon-small aui-iconfont-approve
confluence-information-macro-icon"></span><div class="confluence-information-macro-body"><p>The
<a shape="rect" href="seda.html">SEDA</a> component provides asynchronous invocation
of any consumers when a producer sends a message exchange.</p></div></div><div
class="confluence-information-macro confluence-information-macro-tip"><p class="title">Connection
to other camel contexts</p><span class="aui-icon aui-icon-small aui-iconfont-approve
confluence-information-macro-icon"></span><
 div class="confluence-information-macro-body"><p>The <a shape="rect" href="vm.html">VM</a>
component provides connections between Camel contexts as long they run in the same <strong>JVM</strong>.</p></div></div><h3
id="Direct-URIformat">URI format</h3><div class="code panel pdl" style="border-width:
1px;"><div class="codeContent panelContent pdl">
 <script class="brush: text; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[direct:someName[?options]
 ]]></script>
-</div></div><p>Where <strong>someName</strong> can be any string
to uniquely identify the endpoint</p><h3 id="Direct-Options">Options</h3><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>Default Value</p></th><th colspan="1" rowspan="1"
class="confluenceTh"><p>Description</p></th><th colspan="1" rowspan="1"
class="confluenceTh">&#160;</th></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p><code>allowMultipleConsumers</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>true</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><strong>@deprecated</strong>
If set to <code>false</code>, then when a second consumer is started on the endpoint,
an <code>IllegalStateException</code> is thrown. <strong>Will be removed
in Camel 2.1:</strong> Direct endpoint does not support multiple consumers.</p></td><td
colspan="1"
  rowspan="1" class="confluenceTd">&#160;</td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p><code>block</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.11.1:</strong>
If sending a message to a direct endpoint which has no active consumer, then we can tell the
producer to block and wait for the consumer to become active.</p></td><td colspan="1"
rowspan="1" class="confluenceTd">&#160;</td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p><code>timeout</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>30000</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.11.1:</strong>
The timeout value to use if block is enabled.</p></td><td colspan="1" rowspan="1"
class="confluenceTd">&#160;</td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p><code>failIfNoConsumers</code></p></td><td
colspan="
 1" rowspan="1" class="confluenceTd"><p>true</p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p><strong>Camel 2.16.0</strong>: Indicates
whether the producer should fail by throwing an exception when sending to a DIRECT endpoint
with no active consumers.</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>&#160;</p></td></tr></tbody></table></div><pre>You
can append query options to the URI in the following format, ?option=value&amp;option=value&amp;...</pre><p>&#160;</p><h3
id="Direct-Samples">Samples</h3><p>In the route below we use the direct component
to link the two routes together:</p><div class="code panel pdl" style="border-width:
1px;"><div class="codeContent panelContent pdl">
+</div></div><p>Where <strong><code>someName</code></strong>
can be any string that uniquely identifies the endpoint.</p><h3 id="Direct-Options">Options</h3><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>Default Value</p></th><th colspan="1" rowspan="1"
class="confluenceTh"><p>Description</p></th></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>allowMultipleConsumers</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>true</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><strong><span style="color:
rgb(255,0,0);">@deprecated </span></strong></p><p>If set to <strong><code>false</code></strong>,
then when a second consumer is started on the endpoint, an <strong><code>IllegalStateException</code></strong>
is thrown. </p><p><strong>Will be removed in Camel 2.1:</strong> Direct
endpoint does not sup
 port multiple consumers.</p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p><code>block</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.11.1:</strong>
If sending a message to a direct endpoint which has no active consumer, the producer will
block for&#160;<strong><code>timeout</code></strong> milliseconds
waiting for a consumer to become active.</p></td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p><code>timeout</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>30000</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.11.1:</strong>
The timeout value, in milliseconds, to block, when enabled, for an active consumer.</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>failIfNoConsumers</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>true</c
 ode></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel
2.16.0</strong>: Indicates whether the producer should fail by throwing an exception
when sending to a&#160;<strong><code>direct</code></strong> endpoint
with no active consumers.</p></td></tr></tbody></table></div><p>You
can append query options to the URI in the following format:&#160;<strong><code>?option=value&amp;option=value&amp;...</code></strong></p><p>&#160;</p><h3
id="Direct-Samples">Samples</h3><p>In the route below we use the direct component
to link the two routes together:</p><div class="code panel pdl" style="border-width:
1px;"><div class="codeContent panelContent pdl">
 <script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[from(&quot;activemq:queue:order.in&quot;)
     .to(&quot;bean:orderServer?method=validate&quot;)
-    .to(&quot;direct:processOrder&quot;);
+    .to(&quot;direct:processOrder?block=true&amp;timeout=5000&quot;);
 
 from(&quot;direct:processOrder&quot;)
     .to(&quot;bean:orderService?method=process&quot;)
@@ -102,7 +102,7 @@ from(&quot;direct:processOrder&quot;)
 <script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
  &lt;route&gt;
      &lt;from uri=&quot;activemq:queue:order.in&quot;/&gt;
      &lt;to uri=&quot;bean:orderService?method=validate&quot;/&gt;
-     &lt;to uri=&quot;direct:processOrder&quot;/&gt;
+     &lt;to uri=&quot;direct:processOrder?failIfNoConsumers=false&quot;/&gt;
   &lt;/route&gt;
 
   &lt;route&gt;



Mime
View raw message