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 » IBM MQ Java / JMS » acknowledgement for the message sent

Post new topic  Reply to topic
 acknowledgement for the message sent « View previous topic :: View next topic » 
Author Message
alfia_786
PostPosted: Wed Nov 14, 2007 1:51 pm    Post subject: acknowledgement for the message sent Reply with quote

Novice

Joined: 13 Nov 2007
Posts: 12

Thanks for all the help so far
I have another question
Is there any way to know if the message has been successfully sent to the queue anything that I can check for after the put which gives a confirmation
Back to top
View user's profile Send private message
bower5932
PostPosted: Wed Nov 14, 2007 2:24 pm    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

Check out the report options. You can search this site.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
fjb_saper
PostPosted: Wed Nov 14, 2007 3:15 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

From the wording I did not expect him to look for the report options but just for the CC and RC (completion code and reason code)...
They should be checked on each put and will tell you if the operation (put) was successful. They will never tell you whether your message reached the intended queue or was read. For this you need the report options...

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Wed Nov 14, 2007 3:16 pm    Post subject: Re: acknowledgement for the message sent Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

alfia_786 wrote:
anything that I can check for after the put which gives a confirmation


If the put works then the message is accepted for delivery. The reason you pay the license is because WMQ offers assured delivery.

If you use the report options bower5932 be aware that you've not only increased message traffic but have to tie together messages & reports. There are very few business requirements that need report messages, and very many businesses that think they do because they're used to unreliable message delivery, like sockets.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
bower5932
PostPosted: Wed Nov 14, 2007 6:31 pm    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

Well, that is interesting.....when I read the question, I assumed that they were looking for report options and not return codes. I guess I've just gotten used to putting messages and knowing that they are there.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Vitor
PostPosted: Thu Nov 15, 2007 12:40 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

bower5932 wrote:
I guess I've just gotten used to putting messages and knowing that they are there.


Which is a much better way of phrasing the point I was trying to make!
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
zpat
PostPosted: Thu Nov 15, 2007 2:26 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

For local queues, the MQPUT completion is all you need to be sure that it is on the queue. Unless you want confirmation that it has been read from the queue.

For remote queues it is a bit different in that the message might be successfully on the XMIT queue but waiting for a channel to start or something like that, or it might be on the DLQ at the other end.

Generally it's better to have system management keeping an eye on transmit queue depth, DLQ depth and channel status, rather than every application trying to monitor the network in some way.

Appwatch is an inexpensive tool that can alert on a range of conditions.
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Nov 15, 2007 2:30 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

zpat wrote:
Generally it's better to have system management keeping an eye on transmit queue depth, DLQ depth and channel status, rather than every application trying to monitor the network in some way.


I suppose the collarary to "once you've put it successfully you know it's going to be delivered" precepit of assured delivery is that "if your MQ admin is on the ball".
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
alfia_786
PostPosted: Thu Nov 15, 2007 1:06 pm    Post subject: using COA for put acknowledgement Reply with quote

Novice

Joined: 13 Nov 2007
Posts: 12

I found this online
http://gurubits.wordpress.com/2007/05/30/acknowledgement-messages-in-ibm-mq-series-websphere-mq/

which tells a way to get an acknowledgement after put and also i found this code on the forum which uses msg.report = MQC.MQRO_COA;

http://scratch.mqseries.net/phpBB2/viewtopic.php?p=91661&highlight=&sid=e1578142c88319b16117d98b19f13375

do you think this is the right way
Back to top
View user's profile Send private message
bower5932
PostPosted: Thu Nov 15, 2007 2:37 pm    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

The last append is actually a separate thread at:

http://www.mqseries.net/phpBB2/viewtopic.php?t=40565&highlight=

I guess they were looking for message acknowledgment and not put confirmation.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » acknowledgement for the message sent
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.