Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to specify remote MSMQ queue name when configuring rebus routing?

Tags:

msmq

rebus

I've seen examples using "queueName@machineName" when specifying a destination address but I'm having problems with it.

.Routing(r => r.TypeBased().Map(typeof(Job), "consumer.input@othermachine"))

With this format, I get the following exception:

"Invalid queue path name."

Am I using the right format or is there something else I'm missing?

Thanks

like image 438
Bredstik Avatar asked Jan 26 '26 08:01

Bredstik


1 Answers

Rebus 0.98.8 had a bug in its MSMQ transport that would not format remote addresses properly. Moreover, it would fail when using IP addresses instead of machine names.

Version 0.98.9 (which is on NuGet.org in a few minutes) fixes this, which means that you can now properly address remote queues like this:

someQueue@someOtherMachine

or

[email protected]

Thanks for bringing it to my attention! I guess it shows that I'm using Azure Service Bus for most of my stuff these days ;)

like image 118
mookid8000 Avatar answered Jan 29 '26 04:01

mookid8000



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!