activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rob Davies (JIRA)" <>
Subject [jira] Resolved: (AMQ-2385) Failover transport - add new option for maximum attempts for startup only
Date Mon, 14 Sep 2009 13:55:12 GMT


Rob Davies resolved AMQ-2385.

       Resolution: Fixed
    Fix Version/s: 5.3.0

Fixed by SVN revision 814639

> Failover transport - add new option for maximum attempts for startup only
> -------------------------------------------------------------------------
>                 Key: AMQ-2385
>                 URL:
>             Project: ActiveMQ
>          Issue Type: New Feature
>          Components: Transport
>    Affects Versions: 5.2.0
>            Reporter: Claus Ibsen
>            Assignee: Rob Davies
>             Fix For: 5.3.0
> 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
> - maxReconnectAttempts = the existing we have now for reconnecting when consumer has
been started
> - 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
> {code}
> startupMaxReconnectAttempts=5&maxReconnectAttempts=-1
> {code}
> 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