Return-Path: X-Original-To: apmail-camel-commits-archive@www.apache.org Delivered-To: apmail-camel-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F3D0C11195 for ; Thu, 22 May 2014 12:18:15 +0000 (UTC) Received: (qmail 51042 invoked by uid 500); 22 May 2014 12:18:15 -0000 Delivered-To: apmail-camel-commits-archive@camel.apache.org Received: (qmail 50983 invoked by uid 500); 22 May 2014 12:18:15 -0000 Mailing-List: contact commits-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list commits@camel.apache.org Received: (qmail 50976 invoked by uid 99); 22 May 2014 12:18:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 May 2014 12:18:15 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 May 2014 12:18:11 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id A69BD2388994 for ; Thu, 22 May 2014 12:17:51 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r909591 - in /websites/production/camel/content: cache/main.pageCache mqtt.html Date: Thu, 22 May 2014 12:17:51 -0000 To: commits@camel.apache.org From: buildbot@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20140522121751.A69BD2388994@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: buildbot Date: Thu May 22 12:17:51 2014 New Revision: 909591 Log: Production update by buildbot for camel Modified: websites/production/camel/content/cache/main.pageCache websites/production/camel/content/mqtt.html Modified: websites/production/camel/content/cache/main.pageCache ============================================================================== Binary files - no diff available. Modified: websites/production/camel/content/mqtt.html ============================================================================== --- websites/production/camel/content/mqtt.html (original) +++ websites/production/camel/content/mqtt.html Thu May 22 12:17:51 2014 @@ -86,62 +86,26 @@ -

MQTT Component

-

Available as of Camel 2.10

- -

The mqtt: component is used for communicating with MQTT compliant message brokers, like Apache ActiveMQ or Mosquitto

- -

Camel will poll the feed every 60 seconds by default.
-Note: The component currently only supports polling (consuming) feeds.

- -

Maven users will need to add the following dependency to their pom.xml for this component:

-
- -
- -

URI format

- -
- -
- -

Where name is the name you want to assign the component.

- -

Options

-
-

Property

Default

Description

host

tcp://127.0.0.1:1883

The URI of the MQTT broker to connect too - this component also supports SSL - e.g. ssl://127.0.0.1:8883

localAddress

 

The local InetAddress and port to use

connectAttemptsMax

-1

The maximum number of attempts to establish an initial connection - -1 in infinite.

reconnectAttemptsMax

-1

The maximum number of attempts to re-establish a connection after failure - -1 in infinite.

reconnectDelay

10

The time in milliseconds between attempts to reestablish an initial or failed connection

r econnectBackOffMultiplier

2.0

The multiplier to use to the delay between connection attempts for successive failed connection attempts

reconnectDelayMax

30000

The maximum time in milliseconds between a new attempt to establish a connection. So even using the reconnectBackOffMultiplier, this property will define the maximum delay before another connection attempt to the MQTT broker

QoS

AtLeastOnce

The MQTT Q uality of Service to use for message exchanges. It can be one of AtMostOnce, AtLeastOnce or ExactlyOnce

subscribeTopicName

 

The name of the Topic to subscribe to for messages

publishTopicName

camel/mqtt/test

The default Topic to publish messages on

byDefaultRetain

false

The default retain policy to be used on messages sent to the MQTT broker

mqttTopicPropertyName

_MQTTTopicPropertyName+

The property name to look for on an Exchange for an individual published message. If this is set - the name will be used as the Topic to publish a message to the MQTT message broker.

mqttRetainPropertyName

MQTTRetain

The property name to look for on an Exchange for an individual published message. If this is set (expects a Boolean value) - then the retain property will be set on the message sent to the MQTT message broker.

mqttQosPropertyName

MQTTQos

The property name to look for on an Exchange for an individual published message. If this is set (one of AtMostOnce, AtLeastOnce or ExactlyOnce ) - then that QoS will be set on the message sent to the MQTT message broker.

connectWaitInSeconds

10

Delay in seconds the Component will wait for a connection to be established to the MQTT broker

disconnectWaitInSeconds

5

the number of seconds the Component will wait for a valid disconnect on stop() from the MQTT broker

sendWaitInSeconds

5

The maximum time the Component will wait for a receipt from the MQTT broker to acknowledge a published message before throwing an exception

-
- -

You can append query options to the URI in the following format, ?option=value&option=value&...

- - -

Samples

- -

Sending messages:

-
- -
- -

Consuming messages:

-
- -
- - -

Endpoints

+

Endpoints

Camel supports the Message Endpoint pattern using the Endpoint interface. Endpoints are usually created by a Component and Endpoints are usually referred to in the DSL via their URIs.