I'm writing a MQ-Java program, which sends a group of messages. It prints out the groupId after putting a message. I've cheeck the groupIds of all messages are same using MQ Explorer. But the values of groupId printed in this program are different from each other. Could anyone tell me what's wrong with this program? How can I check groupId?
Joined: 11 Apr 2001 Posts: 1554 Location: Silicon Valley
I think the message.clear is what is doing it. You should only be resetting the messageid and/or correlid fields in the message header, not the whole thing. This way, the groupid field remains set to the value that was assigned to the first message in the group.
_________________ Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum