camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r908473 - in /websites/production/camel/content: cache/main.pageCache rabbitmq.html
Date Fri, 09 May 2014 16:18:07 GMT
Author: buildbot
Date: Fri May  9 16:18:07 2014
New Revision: 908473

Log:
Production update by buildbot for camel

Modified:
    websites/production/camel/content/cache/main.pageCache
    websites/production/camel/content/rabbitmq.html

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

Modified: websites/production/camel/content/rabbitmq.html
==============================================================================
--- websites/production/camel/content/rabbitmq.html (original)
+++ websites/production/camel/content/rabbitmq.html Fri May  9 16:18:07 2014
@@ -98,8 +98,22 @@
 <script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[rabbitmq://hostname[:port]/exchangeName?[options]
 ]]></script>
 </div></div><p>Where <strong>hostname</strong> is the hostname
of the running rabbitmq instance or cluster. Port is optional and if not specified then defaults
to the RabbitMQ client default (5672). The exchange name determines which exchange produced
messages will sent to. In the case of consumers, the exchange name determines which exchange
the queue will bind to.</p><h3 id="RabbitMQ-Options">Options</h3><div
class="confluenceTableSmall">
-<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1"
class="confluenceTh"><p> Property </p></th><th colspan="1" rowspan="1"
class="confluenceTh"><p> Default </p></th><th colspan="1" rowspan="1"
class="confluenceTh"><p> Description </p></th></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>autoAck</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>true</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> If messages
should be auto acknowledged </p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p> <code>autoDelete</code> </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>true</code> </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> If it is true, the exchange will
be deleted when it is no longer in use </p></td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p> <code>durable</code> </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>true</
 code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>
If we are declaring a durable exchange (the exchange will survive a server restart) </p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>queue</code> </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>random uuid</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> The
queue to receive messages from </p></td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p> <code>routingKey</code> </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>null</code> </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> The routing key to use when binding
a consumer queue to the exchange. For producer routing keys, you set the header (see header
section) </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>
<code>threadPoolSize</code> </p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p> <code>10</code> </p></td><td
colspan
 ="1" rowspan="1" class="confluenceTd"><p> The consumer uses a Thread Pool Executor
with a fixed number of threads. This setting allows you to set that number of threads. </p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>username</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>null</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> username
in case of authenticated access </p></td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p> <code>password</code> </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>null</code> </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> password for authenticated access
</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>
<code>vhost</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>
<code>/</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>
the vhost for the channel </p></td></tr><tr><td colsp
 an="1" rowspan="1" class="confluenceTd"><p> <code>exchangeType</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>direct</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <strong>Camel
2.12.2:</strong> The exchange type such as direct or topic. </p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>bridgeEndpoint</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.12.3:</strong> If the bridgeEndpoint is true, the producer will ignore the message
header of "rabbitmq.EXCHANGE_NAME" and "rabbitmq.ROUTING_KEY" </p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>addresses</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>null</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <strong>Camel
2.12.3:</strong> If this option is set, camel-rabbitmq w
 ill try to create connection based on the setting of option addresses. The addresses value
is a string which looks like "server1:12345, server2:12345"</p></td></tr></tbody></table>
-</div><h3 id="RabbitMQ-Headers">Headers</h3><p>The following headers
are set on exchanges when consuming messages.</p><div class="confluenceTableSmall">
+<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1"
class="confluenceTh"><p> Property </p></th><th colspan="1" rowspan="1"
class="confluenceTh"><p> Default </p></th><th colspan="1" rowspan="1"
class="confluenceTh"><p> Description </p></th></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>autoAck</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>true</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> If messages
should be auto acknowledged </p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p> <code>autoDelete</code> </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>true</code> </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> If it is true, the exchange will
be deleted when it is no longer in use </p></td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p> <code>durable</code> </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>true</
 code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>
If we are declaring a durable exchange (the exchange will survive a server restart) </p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>queue</code> </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>random uuid</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> The
queue to receive messages from </p></td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p> <code>routingKey</code> </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>null</code> </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> The routing key to use when binding
a consumer queue to the exchange. For producer routing keys, you set the header (see header
section) </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>
<code>threadPoolSize</code> </p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p> <code>10</code> </p></td><td
colspan
 ="1" rowspan="1" class="confluenceTd"><p> The consumer uses a Thread Pool Executor
with a fixed number of threads. This setting allows you to set that number of threads. </p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>username</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>null</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> username
in case of authenticated access </p></td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p> <code>password</code> </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>null</code> </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> password for authenticated access
</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>
<code>vhost</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>
<code>/</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>
the vhost for the channel </p></td></tr><tr><td colsp
 an="1" rowspan="1" class="confluenceTd"><p> <code>exchangeType</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>direct</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <strong>Camel
2.12.2:</strong> The exchange type such as direct or topic. </p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>bridgeEndpoint</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.12.3:</strong> If the bridgeEndpoint is true, the producer will ignore the message
header of "rabbitmq.EXCHANGE_NAME" and "rabbitmq.ROUTING_KEY" </p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>addresses</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>null</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <strong>Camel
2.12.3:</strong> If this option is set, camel-rabbitmq w
 ill try to create connection based on the setting of option addresses. The addresses value
is a string which looks like "server1:12345, server2:12345"</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>connectionTimeout        </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>      0</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> <strong>Camel 2.14:</strong>
Connection timeout</p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p>requestedChannelMax      </p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p>      0</p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p> <strong>Camel 2.14:</strong> Connection
requested channel max (max number of channels offered)</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>requestedFrameMax        </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>      0</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> <strong>Camel 2.14:</strong>
Co
 nnection requested frame max (max size of frame offered)</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>requestedHeartbeat       </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>      0</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> <strong>Camel 2.14:</strong>
Connection requested heartbeat (heart-beat in seconds offered)</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>sslProtocol              </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>  null </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> <strong>Camel 2.14:</strong>
Enables SSL on connection, accepted value are `true`, `TLS` and 'SSLv3`</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>trustManager             </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>  null </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> <strong>Camel 2.14:</strong>
Configure SSL trust manager, SSL should be ena
 bled for this option to be effective</p></td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p>clientProperties         </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>  null </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> <strong>Camel 2.14:</strong>
Connection client properties (client info used in negotiating with the server)</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>connectionFactory        </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>  null </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> <strong>Camel 2.14:</strong>
Custom RabbitMQ connection factory. When this option is set, all connection options (connectionTimeout,
requestedChannelMax...) set on URI are not used</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>automaticRecoveryEnabled </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> false </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>
  <strong>Camel 2.14:</strong> Enables connection automatic recovery (uses connection
implementation that performs automatic recovery when connection shutdown is not initiated
by the application)</p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p>networkRecoveryInterval  </p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p>  5000 </p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p> <strong>Camel 2.14:</strong> Network
recoverty interval in milliseconds (interval used when recovering from network failure)</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>topologyRecoveryEnabled  </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>  true </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> <strong>Camel 2.14:</strong>
Enables connection topology recovery (should topology recovery be performed?)</p></td></tr></tbody></table>
+</div><p>See <a shape="rect" class="external-link" href="http://www.rabbitmq.com/releases/rabbitmq-java-client/current-javadoc/com/rabbitmq/client/ConnectionFactory.html"
rel="nofollow">http://www.rabbitmq.com/releases/rabbitmq-java-client/current-javadoc/com/rabbitmq/client/ConnectionFactory.html</a>
and the AMQP specification for more information on connection options.</p><h2 id="RabbitMQ-Customconnectionfactory">Custom
connection factory</h2><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[&lt;bean
id=&quot;customConnectionFactory&quot; class=&quot;com.rabbitmq.client.ConnectionFactory&quot;&gt;
+&lt;property name=&quot;host&quot; value=&quot;localhost&quot;/&gt;
+&lt;property name=&quot;port&quot; value=&quot;5672&quot;/&gt;
+&lt;property name=&quot;username&quot; value=&quot;camel&quot;/&gt;
+&lt;property name=&quot;password&quot; value=&quot;bugsbunny&quot;/&gt;
+&lt;/bean&gt;
+&lt;camelContext&gt;
+&lt;route&gt;
+&lt;from uri=&quot;direct:rabbitMQEx2&quot;/&gt;
+&lt;to uri=&quot;rabbitmq://localhost:5672/ex2?connectionFactory=#customConnectionFactory&quot;/&gt;
+&lt;/route&gt;
+&lt;/camelContext&gt;
+]]></script>
+</div></div><p><span style="font-size: 16.0px;line-height: 1.5625;"><br
clear="none"></span></p><p><span style="font-size: 16.0px;line-height:
1.5625;">Headers</span></p><p>The following headers are set on exchanges
when consuming messages.</p><div class="confluenceTableSmall">
 <table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1"
class="confluenceTh"><p> Property </p></th><th colspan="1" rowspan="1"
class="confluenceTh"><p> Value </p></th></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p> <code>rabbitmq.ROUTING_KEY</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> The
routing key that was used to receive the message, or the routing key that will be used when
producing a message </p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p> <code>rabbitmq.EXCHANGE_NAME</code> </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> The exchange the message was received
from </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>
<code>rabbitmq.DELIVERY_TAG</code> </p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p> The rabbitmq delivery tag of the received message </p></td></tr></tbody></table>
 </div><p>The following headers are used by the producer. If these are set on
the camel exchange then they will be set on the RabbitMQ message.</p><div class="confluenceTableSmall">
 <table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1"
class="confluenceTh"><p> Property </p></th><th colspan="1" rowspan="1"
class="confluenceTh"><p> Value </p></th></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p> <code>rabbitmq.ROUTING_KEY</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> The
routing key that will be used when sending the message </p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>rabbitmq.EXCHANGE_NAME</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> The
exchange the message was received from, or sent to </p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>rabbitmq.CONTENT_TYPE</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> The
contentType to set on the RabbitMQ message </p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>rabbitmq.PRIORITY</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd">
 <p> The priority header to set on the RabbitMQ message  </p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>rabbitmq.CORRELATIONID</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> The
correlationId to set on the RabbitMQ message  </p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>rabbitmq.MESSAGE_ID</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> The
message id to set on the RabbitMQ message  </p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>rabbitmq.DELIVERY_MODE</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> If the
message should be persistent or not </p></td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p> <code>rabbitmq.USERID</code> </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> The userId to set on the RabbitMQ
message  </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>
<code>rabbitmq.CLUSTE
 RID</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>
The clusterId to set on the RabbitMQ message </p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>rabbitmq.REPLY_TO</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> The
replyTo to set on the RabbitMQ message </p></td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p> <code>rabbitmq.CONTENT_ENCODING</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> The
contentEncoding to set on the RabbitMQ message </p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>rabbitmq.TYPE</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> The
type to set on the RabbitMQ message</p></td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p> <code>rabbitmq.EXPIRATION</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> The
expiration to set on the RabbitMQ message </p></td></tr><tr><td
colspan="1" rows
 pan="1" class="confluenceTd"><p> <code>rabbitmq.TIMESTAMP</code> </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> The timestamp to set on the RabbitMQ
message </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>
<code>rabbitmq.APP_ID</code> </p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p> The appId to set on the RabbitMQ message </p></td></tr></tbody></table>



Mime
View raw message