activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <>
Subject [jira] Created: (AMQ-2385) Failover transport - add new option for maximum attempts for startup only
Date Fri, 11 Sep 2009 06:31:12 GMT
Failover transport - add new option for maximum attempts for startup only

                 Key: AMQ-2385
             Project: ActiveMQ
          Issue Type: New Feature
          Components: Transport
    Affects Versions: 5.2.0
            Reporter: Claus Ibsen

See AMQ-2114 for background.

And from this discussion

I do believe it would be great if there was 2 options to set the maxReconnectAttempts option
- maxReconnectAttempts = the existing we have now for reconnecting when consumer has been
- startupMaxReconnectAttempts = a new option when starting consumer to avoid it potentially
blocking for a very long time in case of connection not possible

For example when end users use Camel or other other frameworks with AMQ where it acts as a
client to consume from a AMQ queue it will hang/block on startup if the connection cannot
be established. So we end up in a catch-22 situation.

We want to just try a X number of times and then go on so the rest can start up properly.
And the the AMQ consumer should remedy the issue itself over time by automatic under the covers
try to reconnect (based on the maxReconnectAttempts) option.

And you could also support (if not already) setting the values to -1 to indicate forever.
Then you can configure these options explict to highlight this fact, for example


See also details here

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message