Re: Question on message groups

2003-10-15 Thread GIES, STEVE
Jeff - 

The answer depends on what GMO options the receiving application is
using.  If it uses MQGMO_ALL_MSGS_AVAILABLE, then a restart of the app
will not pick up the remaining messages from the groups -since some of
the messages are missing.  If MQGMO_LOGICAL_ORDER is used, then this
will also fail since the first message of the group is missing.  What I
think you need to do is on restart, set the GroupId and MsgSeqNumber, in
the MQMD, for the next expected message in the group.  Do not specify
either MQGMO_ALL_MSG_AVAILABLE or MQGMO_LOGICAL_ORDER.  Once you get
this first message, you can now use MQGMO_LOGICAL_ORDER to ensure that
the remaining messages are retrieved in order.  (You'll want to test
this!!). 

- Steve

BTW, the Reference manual contains quite a bit of info on Message
Grouping in the MQGMO and MQPMO sections.

-Original Message-
From: MQSeries List [mailto:[EMAIL PROTECTED] On Behalf Of Jeff A
Tressler
Sent: Wednesday, October 15, 2003 7:04 AM
To: [EMAIL PROTECTED]
Subject: Question on message groups


A sending application uses message groups. It sends a large number of
messages (1000+) in each group.

The receiving application reads each message from the group and does a
MQCMIT every message. For some reason, the receiving application cannot
wait for the entire group to do the commit.

What happens if the receiving application fails for some reason when it
is half way through the group?

It has committed many of the messages so they do not exist on the queue
anymore. When the receiving app starts back up, will it begin reading
the rest of the messages or will there be some problem.

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive


Question on message groups

2003-10-15 Thread Jeff A Tressler
A sending application uses message groups. It sends a large number
of messages (1000+) in each group.

The receiving application reads each message from the group and
does a MQCMIT every message. For some reason, the receiving
application cannot wait for the entire group to do the commit.

What happens if the receiving application fails for some reason when
it is half way through the group?

It has committed many of the messages so they do not exist on the
queue anymore. When the receiving app starts back up, will it begin
reading the rest of the messages or will there be some problem.

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive