>With respect to LUW's, coders of client applications need to be aware of
>considerations beyond the obvious lack of support for MQBegin. Suppose an
>MQCMIT is requested by the client, there is a window of uncertainty until
>the response comes back across the channel. If the connection is lost
during
>that window, the client is uncertain if the qmgr processed the request or
>not. So, I suspect it's possible for an MQCMIT request to fail (i.e. 2009)
>even though the commit is actually successful. Perhaps Andy or Paul can
>confirm that. Along similar lines, if the client abends during that
window,
>the MQCMIT may still progress to satisfactory completion. A client that
>resumes after having missed the MQCMIT response, probably should not
assume
>that it failed.

Dennis,

You are quite right to point out that a failed return code from an MQCMIT()
call does not necessarily indicate that the commit itself failed. But this
is not only true of a client connection, a locally connected application
may also get MQRC_CONNECTION_BROKEN (or others). The purpose of a
transaction is so that the application can be certain that 'all or nothing'
is performed by the Queue Manager. Generally speaking an application will
be starting a transaction with an MQGET() from a queue. If the transaction
failed that message will be rolled back and the application will be able to
reprocess the transaction when the failure is fixed. In this mode the
application need not care whether the previous transaction committed or
not. Other transactions are not quite so simple and the application may
need to determine whether any previous transactions failed or committed.
There are a number of techniques but will involve some persistent store. In
these scenarios a client is at a disadvantage because you can't use a
database (no XA interface) so you have to use an MQ queue.

However, in the general case (XA transactions aside) the behaviour of the
MQI (and its reliability and transaction semantics) are the same for a
client as it is for a local application.

Cheers,
P.

Paul G Clarke
WebSphere MQ Development
IBM Hursley

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

Reply via email to