Author |
Message
|
zx7R |
Posted: Sun May 13, 2007 7:32 am Post subject: Hi. How to get acknowledge ?? |
|
|
Novice
Joined: 08 May 2007 Posts: 12
|
Hello good ppl.
I have some application which should work in asynchronous method.
Scenario: I'm sending some XML file as a message to queue, get ack* from MQSeries, and show the acknowledge in some message box for user, to be sure the message recieved in the queue.
1. Can i do that not in programmaticly way?
2. If not - what methods i should use in my application?
thank you.  |
|
Back to top |
|
 |
jefflowrey |
Posted: Sun May 13, 2007 7:44 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You don't get an acknowledgement/ack.
You get a return code, or in the case of the object-oriented languages then no exception has been thrown.
This is strictly for "MQ has accepted the message for eventual delivery", not "the message has been delivered" or "the receiver has read the message". For those, you can ask for a Confirm On Arrival or Confirm On Delivery report - and I forget which one is which. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
zx7R |
Posted: Sun May 13, 2007 7:49 am Post subject: jefflowrey, thank you man. |
|
|
Novice
Joined: 08 May 2007 Posts: 12
|
But a little question: i should get some care of "OnReason 1 Write ACKNOWLEDGE, On Reason 0 Write NEGATIVE" ? something like that? |
|
Back to top |
|
 |
Vitor |
Posted: Sun May 13, 2007 8:46 am Post subject: Re: jefflowrey, thank you man. |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
zx7R wrote: |
But a little question: i should get some care of "OnReason 1 Write ACKNOWLEDGE, On Reason 0 Write NEGATIVE" ? something like that? |
As jefflowrey has said, you'll get a completion code and a reason code. If the completion code indicates failure, the reason code will tell you why.
Typically if the message is sucessfully put, it's taken that it will reach it's destinaction. This is the essence of the assured delivery WMQ offers. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
jefflowrey |
Posted: Sun May 13, 2007 9:43 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
And, again, if you're using an object oriented API (java, .net) you might not get a reason or completion code from the PUT. You'll just fail to get an exception - so only write NEGATIVE if you get an exception. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
zx7R |
Posted: Sun May 13, 2007 11:34 pm Post subject: Thanx Alot! |
|
|
Novice
Joined: 08 May 2007 Posts: 12
|
i am very appricaiate for your help. |
|
Back to top |
|
 |
ashu |
Posted: Sun May 13, 2007 11:56 pm Post subject: |
|
|
 Centurion
Joined: 11 Nov 2006 Posts: 132
|
I had assumed that COA is report that the message is delivered on the local queue and COD is the report that the message reached the remote Local queue.
Is my assumption correct
Regards,  _________________ Ashu
"It is simple to be Happy but difficult to be Simple" |
|
Back to top |
|
 |
Nigelg |
Posted: Mon May 14, 2007 12:08 am Post subject: |
|
|
Grand Master
Joined: 02 Aug 2004 Posts: 1046
|
I think that COA means that the msg has reached its (final) destination queue, and COD means that the msg has been read from the queue. Look it up, it is probably in the APR. _________________ MQSeries.net helps those who help themselves.. |
|
Back to top |
|
 |
Vitor |
Posted: Mon May 14, 2007 12:23 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
ashu wrote: |
I had assumed that COA is report that the message is delivered on the local queue and COD is the report that the message reached the remote Local queue.
Is my assumption correct
|
No.
If you do a forum search, this has been a popular topic of late. With many of the topics containing rants from me on why they shouldn't be used. You'll also find both message types described in the documentation. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
ashu |
Posted: Mon May 14, 2007 12:25 am Post subject: |
|
|
 Centurion
Joined: 11 Nov 2006 Posts: 132
|
Vitor wrote: |
ashu wrote: |
I had assumed that COA is report that the message is delivered on the local queue and COD is the report that the message reached the remote Local queue.
Is my assumption correct
|
No.
If you do a forum search, this has been a popular topic of late. With many of the topics containing rants from me on why they shouldn't be used. You'll also find both message types described in the documentation. |
Ok I will check it out...
Thank you,
Warm Regards, _________________ Ashu
"It is simple to be Happy but difficult to be Simple" |
|
Back to top |
|
 |
|