I'm trying to connect to a remote private MSMQ queue using the path:
"FormatName:DIRECT=OS:remoteMachineName\Private$\MyQueue"
and I'm getting the following error:
"The specified format name does not support the requested operation. For example, a direct queue format name cannot be deleted."
I'm obviously doing something wrong. However this does work using a local queue.
I'm using Spring.Net's Messaging. Here's my config
<objects xmlns="http://www.springframework.net">
<object id="myQueue" type="Spring.Messaging.Support.MessageQueueFactoryObject, Spring.Messaging">
<property name="Path" value="FormatName:DIRECT=OS:remoteMachineName\Private$\MyQueue"/>
</object>
<object id="messageQueueTemplate" type="Spring.Messaging.Core.MessageQueueTemplate, Spring.Messaging">
<property name="DefaultMessageQueueObjectName" value="myQueue"/>
</object>
<object id="messageGateway" type="My.MessageGateway, My.Assembly">
<property name="MessageQueueTemplate" ref="messageQueueTemplate"/>
</object>
</objects>