Configuring Message Queuing with a proxy server
Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2
Configuring Message Queuing with a proxy server
Most organizations connect to the Internet using a proxy server for dispatching outgoing messages and a perimeter network protected by firewalls for routing incoming messages. A proxy server acts as a liaison between the intranet and the Internet. It creates a protected channel for passing information between the private network and the Internet and provides caching. Message Queuing uses an HTTP proxy to connect to URL addresses for delivering HTTP messages. Message Queuing thus needs to know the name of the proxy server and the applicable port to which it must connect. At the same time, there may be a list of target names for which the proxy connection is bypassed; that is, URL addresses that do not need to be accessed through the proxy server. An attempt is made to establish a direct connection with such targets. A Message Queuing application can only send messages over HTTP through a proxy server. No other type of Message Queuing messages can be sent. All of the information regarding proxy servers is stored in registry keys, at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Internet Settings. After setting the registry, restart the Message Queuing service for the changes to take effect.
Caution
- Incorrectly editing the registry may severely damage your system. It is recommended that you back up any valuable data on the computer before making changes to the registry.
You can use the Proxy Configuration utility to configure a proxy server. To configure a proxy server, type the following command at the command prompt:
Proxycfg.exe -p ProxyServerName:PortNumber BypassedTargets
Note that wildcards can be used to define a list of bypassed targets.
The proxy server configuration is read whenever an outgoing queue is created to send messages to a new URL, so you do not need to stop and restart the Message Queuing service for new proxy settings to take affect. However, if you change the proxy server configuration using the Proxy Configuration utility and you want an active outgoing queue to use the new settings, you must pause and resume that outgoing queue.