camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rich Newcomb (JIRA)" <>
Subject [jira] [Updated] (CAMEL-4224) Add Lazy Connection to XMPP
Date Mon, 27 Aug 2012 06:54:07 GMT


Rich Newcomb updated CAMEL-4224:

    Attachment: CAMEL-4224.patch

The attached file provides the following enhancements:

1.  Adds the ability for XMPP Producers to connect "lazily" to XMPP servers.  This will allow
camel routes with XMPP producers to optionally start up even if the producer has not successfully
connected to the XMPP server.

2.  Adds a robust connection polling capability for the XMPP consumer.  This allows a consuming
route to re-establish the connection to an XMPP server (and continue receiving messages) when
there is a disconnection event (e.g. network outage, etc).

3.  Fixes an occurrence of plain-text password logging when a password appears in the URI.

4.  Fixes some potential concurrency issues.


Two new URI parameters influence the behavior of the component :

*  testConnectionOnStartup  (default = true)  --  will cause the endpoint to throw an exception
if a connection to the XMPP server can not be established at startup.  Allows lazy connections
& polling-connection establishment when false.

* connectionPollDelay  (default = 10s) -- frequency with which a background thread will check
and repair connections held by an XMPP consumer.
> Add Lazy Connection to XMPP
> ---------------------------
>                 Key: CAMEL-4224
>                 URL:
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-xmpp
>    Affects Versions: 2.7.2
>            Reporter: James Green
>            Assignee: Rich Newcomb
>             Fix For: 2.11.0
>         Attachments: CAMEL-4224.patch
> We are trying to use XMPP as an endpoint but we have a serious problem.
> If the XMPP server is inaccessible, we cannot start Camel - it just issues a FailedToCreateProducerException
exception and shuts itself down.
> Given we are running Camel from an ActiveMQ instance this prevents critical infrastructure
from being restarted when our XMPP server is offline.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message