Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Messaging with HTTP support

Messaging with HTTP support

Scheduled Pinned Locked Moved C#
helpcsharpdotnetwindows-admindata-structures
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Aryadip
    wrote on last edited by
    #1

    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 !!

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups