|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Last message in the group - value in MsgFlags |
« View previous topic :: View next topic » |
Author |
Message
|
Bartez75 |
Posted: Tue Feb 02, 2010 2:49 am Post subject: Last message in the group - value in MsgFlags |
|
|
 Voyager
Joined: 26 Oct 2006 Posts: 80 Location: Poland, Wroclaw
|
HI,
When setting last message in group by:
Code: |
SET OutputRoot.MQMD.MsgFlags = MQMF_LAST_MSG_IN_GROUP;
|
the actual value in MsgFlags is 16.
When this is done with rfhutil by checking Group [YES, LAST] on the tab MQMD it is 24.
According to this:
http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r1m0/index.jsp?topic=/com.ibm.etools.mft.doc/ac25710_.htm
it is enough to set MQMF_LAST_MSG_IN_GROUP which is 16 I think.
Setting MQMF_MSG_IN_GROUP + MQMF_LAST_MSG_IN_GROUP would give 24 which gives rfhutil.
Could someone tell what value should be in MsgFlags that marks message in the group as last message?
16?
24?
or both are correct? |
|
Back to top |
|
 |
smdavies99 |
Posted: Tue Feb 02, 2010 7:35 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
The flags are a bitmask
so to be technically correct, you should OR the two values
From the WMQ cmqc.h file
Code: |
define MQMF_MSG_IN_GROUP 0x00000008
define MQMF_LAST_MSG_IN_GROUP 0x00000010
|
_________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
Bartez75 |
Posted: Wed Feb 03, 2010 8:25 am Post subject: |
|
|
 Voyager
Joined: 26 Oct 2006 Posts: 80 Location: Poland, Wroclaw
|
Yes,
Code: |
SET OutputRoot.MQMD.MsgFlags = MQMF_MSG_IN_GROUP || MQMF_LAST_MSG_IN_GROUP |
will give 24 |
|
Back to top |
|
 |
zpat |
Posted: Wed Feb 03, 2010 8:31 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Adding or Or'ing will give 24, of course.
The question remains - what should be set by the Putting application?
The IBM manual implies only one of the two flags need be set.
However if you look for value 24 you are checking for both being set.
The correct approach is to check for the flag for last, using AND logic.
If Flags AND Flag_for_last = true then LAST MSG
That way it will work for any combination that includes the LAST flag. |
|
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
|
|
|
|