We are a team of developers that use the same WebSphere MQ queue to write and read messages. Because we use the same queue some messages are picked up by a reader from another machine. Is there a way to filter the messages that are read from the queue, by the Environment.MachineName of the sender?
This is what I tried fo far by using MQMessage.GroupId:
- Set GroupId on the messages that are PUT.
- Set MQGetMessageOptions.MatchOptions = MQC.MQMO_MATCH_GROUP_ID for the GET and set GroupId on message.
Basically I am trying to make a group for each workstation that uses the queue. Unfortunatelly this doesn't work, no messages are read by the GET.
Is there another option to implement what I need? I am using WebSphere MQ 7.0.1 and amqmdnet.dll WebSphere MQ Classes for .NET.
Thanks in advance, Radu