tags:

views:

57

answers:

2

With simple Pub/Sub in NServiceBus, I know that if my subscriber app is not running, then the published messages will just accumulate in the queue until they can be processed. But where do they accumulate if the entire machine is down? Since the message can't even be delivered to my subscriber queue, is there some queue where they sit on the publisher? I would like to be able to see what messages are waiting on the publisher when the subscriber machine is down.

Is there any way to see them?

+2  A: 

Msmq, the default transport för NServiceBus, use the store and forward pattern to deliver messages. That means that when you send a message to another machine it's first "stored" on the machine that sends the message and then "forward" to the recipient machine. This means that outgoing messages to unreachable machines will be stored on the sending machine until they can be delivered. Msmq uses the terminology of "outgoing queues" for temporary storage of messages that is being delivered. If the receiving machine is down the message will sit in the "outgoing queue" until it can be delivered. If you look at the "Message Queuing" MMC plugin you will find a folder called "Outgoing Queues", this is where your published messages will show up if the subscriber is down.

The best resource for info on Msmq IMO is John Breakwells blog: http://blogs.msdn.com/b/johnbreakwell/archive/tags/msmq/

More info on NServiceBus combined with Msmq:

http://www.nservicebus.com/Msmq.aspx

Hope this helps!

Andreas
Just as a clarification point: the question is about NServiceBus. It so happens that the default transport used by NServiceBus is MSMQ. http://www.nservicebus.com/Msmq.aspx
Nathan
Absolutely correct, answer updated.. Thanks!
Andreas
A: 

I have two subscribers listening to a publisher.All th queues are on the same machine.To make subscriber power off i deleted the input queue of one of the subsriber. I am getting one exception in the generic host command output and no meesages are there in the Outgoing Queues. Is this behaviour is coz all things are in the same machine ?

Ajai
You should not post this as answer to a question. You should post a new question.
skb