Messaging with HTTP support
-
Hi, As you all know MSMQ 3.0 supports HTTP messaging. Now it takes the Queue Path in the form : DIRECT=HTTP://localhost/msmq/private$/MyQueue where localhost represents the machine or site name, msmq represents the virtual directory name , private$ tells that the queue is a private Queue and MyQueue is the Queue name. We can use "system.Messaging" namespace to send and receive message from "MyQueue" over HTTP. By default MSMQ HTTP takes msmq as the virtual directory and gets created when you install MSMQ with HTTP support. MSMQ documentation says that we can change the Virtual directory if we want to by configuring MSMQ using IIS. The exact sentence is quoted below : "Destination queues for HTTP messages are opened using direct format names that include the URL address of the target computer, the virtual directory name, and the queue name separated by slashes. The default virtual directory name is msmq, but Message Queuing can be configured by IIS to use a different virtual directory. " Now there are 2 parts in my Question... 1) How do you configure MSMQ using IIS to use a different Virtual Directory 2) how to use "System.Messaging" namespace of .NET framework to send a message over HTTP using different virtual directory name (the problem is if you specify anything other than "msmq" in the URL the MessageQueueException is thrown with Invalid Format Name as the error text) E.G. : DIRECT=HTTP://localhost/msmq1/private$/MyQueue where msmq1 is the new virtual directory configured for MSMQ Hope my Question is clear enough... hoping for a positive reply... regards, Aryadip. Cheers !! and have a Funky day !!