Yes, it is going to retry sending the message 5 times before it fails.The
solution for that to have separate messages for each operation.
You would have MailMessage instead of handling MyMessage directrly

On Mon, Jan 19, 2009 at 5:01 PM, chrisortman <[email protected]> wrote:

>
> I have configured a bus with numberOfRetries set to 5
>
> I then have 2 handlers for my message
>
> class EmailHandler : ConsumerOf<MyMessage> {
>  public void Consume(MyMessage m) {
>     SendEmail(to,from,subject,m.ToString());
>  }
> }
>
> class BadHandler : ConsumerOf<MyMessage> {
>   public void Consume(MyMessage m) {
>     throw new Exception("ha ha ha");
>   }
> }
>
> What happens is that I wind up getting 5 emails.
> I think this is because the message does not get removed from the
> queue until the retries are > 5?
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Rhino Tools Dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rhino-tools-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to