|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Creating MQ Message Groups |
« View previous topic :: View next topic » |
Author |
Message
|
fazz |
Posted: Fri Nov 19, 2004 1:40 am Post subject: Creating MQ Message Groups |
|
|
 Centurion
Joined: 20 Feb 2004 Posts: 144 Location: England
|
Hi,
I have a requirement to create an MQ message group within a flow (2.1) from a single input message. I can set the required flags and sequence number within the MQMD, but what about the group id? I would like MQ to handle this, can I leave this blank and when the message is put MQ will fill it in? If not, can I use the UUID function as a group id?
Cheers,
Fazz |
|
Back to top |
|
 |
JohnMetcalfe |
Posted: Fri Nov 19, 2004 3:04 am Post subject: |
|
|
 Apprentice
Joined: 02 Apr 2004 Posts: 40 Location: Edinburgh, Scotland
|
Fazz,
I think the uuidasblob function should be suitable.
Once point to watch is that this function returns a value that is smaller than that required for a Group_Id, so you need to pad. Try:
Code: |
set OutputRoot.MQMD.GroupId = uuidasblob || x'0000000000000000'; |
I think another option would be to set the Group Id to the Msg Id of the first message in the group. |
|
Back to top |
|
 |
fazz |
Posted: Fri Nov 19, 2004 3:49 am Post subject: |
|
|
 Centurion
Joined: 20 Feb 2004 Posts: 144 Location: England
|
Cheers John, I like the sound of using the message id of the original input message, that will also add some kind of audit trail.
Thanks Again,
Fazz |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|