ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » Hi. How to get acknowledge ??

Post new topic  Reply to topic
 Hi. How to get acknowledge ?? « View previous topic :: View next topic » 
Author Message
zx7R
PostPosted: Sun May 13, 2007 7:32 am    Post subject: Hi. How to get acknowledge ?? Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Sun May 13, 2007 7:44 am    Post subject: Reply with quote

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
View user's profile Send private message
zx7R
PostPosted: Sun May 13, 2007 7:49 am    Post subject: jefflowrey, thank you man. Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Sun May 13, 2007 8:46 am    Post subject: Re: jefflowrey, thank you man. Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Sun May 13, 2007 9:43 am    Post subject: Reply with quote

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
View user's profile Send private message
zx7R
PostPosted: Sun May 13, 2007 11:34 pm    Post subject: Thanx Alot! Reply with quote

Novice

Joined: 08 May 2007
Posts: 12

i am very appricaiate for your help.
Back to top
View user's profile Send private message
ashu
PostPosted: Sun May 13, 2007 11:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
Nigelg
PostPosted: Mon May 14, 2007 12:08 am    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Mon May 14, 2007 12:23 am    Post subject: Reply with quote

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
View user's profile Send private message
ashu
PostPosted: Mon May 14, 2007 12:25 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Hi. How to get acknowledge ??
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.