hi everyone, I'm not sure if i'm in a good forum for this. I'm working with MSMQueue / MessageQueues and I'm trying to figure out if it's possible to send messages to an outside server. Generally, if I create a message, and execute .Send, it sends the message to the machine that the code is running on. How can I specify a remote box?
Thanks!
Loading
Sateesh ArvetiPosted Mar 20, 2009, 3:55 AM
in c# code,we can specify remote m/c using below code:
string queuepath = "";
queuepath = @"FormatName:DIRECT=OS:"+Form1.selectedmcname.ToString()+@"\queuemsgs";
msgqueue.Path =queuepath;
msgqueue.Send(txtsentmsg.Text,DateTime.Now.ToLongTimeString()+":::"+System.Environment.MachineName);
Not sure,whether it will help or not.