I have two Amazon EC2 instances and I want to send a message from one server to the MSMQ on the other. Normally, in other test environments, this would be on a domain so wouldn't be a problem, but these EC2 instances are workgroup computers and not on a domain. Therefore, trying to send to a public queue on that machine isn't possible. I've therefore created a private queue on the second server, but can't see how to get the message to appear. I've tried the following:
[machinename][queuename] e.g. ServerB\testqueue
FormatName:direct=[machinename]\private$[queuename] e.g. FormatName:direct=ServerB\private$\testqueue
DIRECT=[machinename]\PRIVATE$[queuename] e.g. DIRECT=ServerB\private$\testqueue
FormatName:direct=os:[machinename]\PRIVATE$[queuename] e.g. FormatName:direct=os:ServerB\private$\testqueue
Note: I have host file entries for both servers listing the workgroup/netbios names against the relevant fixed EC2 IP addresses
Using the two FormatName: entries, I do not get any errors but the messages never arrive. Using the others give me an error regarding the format name. On the private queues I have given 'everyone' full control.
Can anyone advise on how I can send a message from one EC2 windows server to a private queue (not on a domain) on another?
Thanks