Error queues - What's the best way to get them to retry?

471 views
Skip to first unread message

Mike Hadlow

unread,
Sep 29, 2009, 7:48:43 AM9/29/09
to masstransit-discuss
If a consumer throws while processing a message, the message gets
placed in the <endoint name>_error queue. What's the recommended way
of getting the message retried?

I know that NServiceBus has a command line untility that moves
messages from the error queue back to the main queue, is there
anything similar in MassTransit, or do we need to write such a thing
ourselves?

Thanks
Mike

Dru Sellers

unread,
Sep 29, 2009, 7:54:51 AM9/29/09
to masstrans...@googlegroups.com
yeah, chris is working on something off and on in the Tools dir called busdriver or somethnig i  think.

-d

Tim Scott

unread,
Sep 29, 2009, 11:09:41 AM9/29/09
to masstrans...@googlegroups.com
We are using QueueExplorer: http://www.cogin.com/mq/

Dru Sellers

unread,
Sep 29, 2009, 11:45:41 AM9/29/09
to masstrans...@googlegroups.com
hadn't seen this before. cool.
-d

Mike Hadlow

unread,
Sep 29, 2009, 11:56:02 AM9/29/09
to masstransit-discuss
I checked out BusDriver, it certainly works for the simple case of
copying messages from one queue to another, Here's an example command
for anyone who's interested:

$ move -from "msmq://localhost/mt_mike_subscriber_error" -to "msmq://
localhost/mt_mike_subscriber"

I had to fix a few things to get it to compile, just uploaded the
patch:
BusDriver_fixes_2029.patch

On Sep 29, 12:54 pm, Dru Sellers <d...@drusellers.com> wrote:
> yeah, chris is working on something off and on in the Tools dir called
> busdriver or somethnig i  think.
> -d
>

Chris Patterson

unread,
Sep 29, 2009, 8:25:28 PM9/29/09
to masstrans...@googlegroups.com
Thanks Mike, I hadn't had a chance to update it since I tweaked some of the Magnum stuff.

I plan to add some more features to it soon, such as previewing message bodies and stuff before moving and making it possible to navigate an endpoint in a style similar to google reader (j/k for prev/next, etc.). Why? Because the keyboard rocks.
 
:)


Chris Patterson



KevM

unread,
Oct 8, 2009, 1:38:52 PM10/8/09
to masstransit-discuss
Mike thanks for the example above. I just had a chance to build and
try out BusDriver and it worked well for my needs. When I get a chance
I'll "enhance" it to accept one off command line commands suitable for
batch file usage.
> chrisfromtu...@gmail.com

KevM

unread,
Oct 8, 2009, 2:02:25 PM10/8/09
to masstransit-discuss
Uploaded a patch to BusDriver which adds support for sending in
commands via the initial application command line. Kinda hacky in that
if your BusDriver command requires a quote you need to escape it.

Not sure why the command line parser requires quotes around parameters
that don't have spaces in them. If there is interest I can look at it?
What is this MonadicCommandLine parser thingy :)

Kevin Miller

On Oct 8, 12:38 pm, KevM <scound...@gmail.com> wrote:
> Mike thanks for the example above. I just had a chance to build and
> try outBusDriverand it worked well for my needs. When I get a chance
> I'll "enhance" it to accept one off command line commands suitable for
> batch file usage.
>
> On Sep 29, 7:25 pm, Chris Patterson <chrisfromtu...@gmail.com> wrote:
>
>
>
> > Thanks Mike, I hadn't had a chance to update it since I tweaked some  
> > of the Magnum stuff.
>
> > I plan to add some more features to it soon, such as previewing  
> > message bodies and stuff before moving and making it possible to  
> > navigate an endpoint in a style similar to google reader (j/k for prev/
> > next, etc.). Why? Because the keyboard rocks.
>
> > :)
>
> > On Sep 29, 2009, at 10:56 AM, Mike Hadlow wrote:
>
> > > I checked outBusDriver, it certainly works for the simple case of
> > > copying messages from one queue to another, Here's an example command
> > > for anyone who's interested:
>
> > > $ move -from "msmq://localhost/mt_mike_subscriber_error" -to "msmq://
> > > localhost/mt_mike_subscriber"
>
> > > I had to fix a few things to get it to compile, just uploaded the
> > > patch:
> > > BusDriver_fixes_2029.patch
>
> > > On Sep 29, 12:54 pm, Dru Sellers <d...@drusellers.com> wrote:
> > >> yeah, chris is working on something off and on in the Tools dir  
> > >> called
> > >>busdriveror somethnig i  think.

Chris Patterson

unread,
Oct 8, 2009, 2:55:30 PM10/8/09
to masstrans...@googlegroups.com
Don't fear the MONAD!
Reply all
Reply to author
Forward
0 new messages