MSMQ configuration to move messages automatically from one queue to another

nbook
nbook used Ask the Experts™
on
My requirement is as follows:

I need to write messages to a queue on one machine-1 which should be routed in to another queue on another machine-2 (within the network) by MSMQ automatically.

1. Is this possible?

2. Can this be done WITHOUT a program polling for the presence of messages and moving the messages to machine-2 programatically?

3. For MSMQ to automatically take care of this, what do we need to configure on machine-1?

Please let me know! Thanks
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Full stack Software Engineer
Commented:
>>1. Is this possible?
yes

>>2. Can this be done WITHOUT a program polling for the presence of messages and moving the messages to machine-2 programatically?
so who's gonna route the message to the other machine?
u need a program/script/something that pop messages from msmq in machine 1 and send them to msmq in machine 2

>>3. For MSMQ to automatically take care of this, what do we need to configure on machine-1?

check complete code in C# for exactly what you need:
http://www.codeproject.com/Articles/25042/Simple-Example-Demonstrating-MSMQ-Message-Routing

i'd have a window service which periodically pops messages from msmq in machine 1 and send to msmq in machine 2.
Meir RivkinFull stack Software Engineer

Commented:
you can also use wmi to send/receive to msmq via pwoershell script if u want something more handy

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial