You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2012/09/17 17:49:07 UTC

[jira] [Resolved] (CAMEL-5613) Provide robust connection support for JMX consumers

     [ https://issues.apache.org/jira/browse/CAMEL-5613?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-5613.
--------------------------------

    Resolution: Fixed
    
> Provide robust connection support for JMX consumers
> ---------------------------------------------------
>
>                 Key: CAMEL-5613
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5613
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-jmx
>            Reporter: Rich Newcomb
>            Assignee: Claus Ibsen
>             Fix For: 2.11.0
>
>         Attachments: CAMEL-5613.patch
>
>
> A Camel JMX consumer that connects to a JMX server on the network currently needs the JMX server to be active before the consumer is started.  The consumer also has no ability to re-initialize lost connections to the JMX server.
> The attached patch eliminates the timing dependency between the JMX consumer and JMX server, by allowing the JMX consumer to optionally poll for the JMX server connection at startup.  The patch also allows the consumer to optionally re-initialize (via polling) connections to a JMX server after an active connection is broken.
> The patch enables the following URI parameters for JMX consumers :
>  * *testConnectionOnStartup* -- if true the consumer will throw an exception if unable to establish the JMX connection upon startup.  If false, the consumer will attempt to establish the JMX connection every 'x' seconds until the connection is made -- where 'x' is the configured  reconnectDelay.  Default is _true_.
>  * *reconnectOnConnectionFailure* -- If true the consumer will attempt to reconnect to the JMX server when any connection failure occurs.  The consumer will attempt to re-establish the JMX connection every 'x' seconds until the connection is made-- where 'x' is the configured  reconnectDelay.  Default is _false_.
>  * *reconnectDelay* -- The number of seconds to wait before attempting to retry establishment of the initial connection or attempt to reconnect a lost connection.  Default is _10_ seconds.

--
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: http://www.atlassian.com/software/jira