Author |
Message
|
alfia_786 |
Posted: Wed Nov 14, 2007 1:51 pm Post subject: acknowledgement for the message sent |
|
|
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 |
|
 |
bower5932 |
Posted: Wed Nov 14, 2007 2:24 pm Post subject: |
|
|
 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 |
|
 |
fjb_saper |
Posted: Wed Nov 14, 2007 3:15 pm Post subject: |
|
|
 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 |
|
 |
Vitor |
Posted: Wed Nov 14, 2007 3:16 pm Post subject: Re: acknowledgement for the message sent |
|
|
 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 |
|
 |
bower5932 |
Posted: Wed Nov 14, 2007 6:31 pm Post subject: |
|
|
 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 |
|
 |
Vitor |
Posted: Thu Nov 15, 2007 12:40 am Post subject: |
|
|
 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 |
|
 |
zpat |
Posted: Thu Nov 15, 2007 2:26 am Post subject: |
|
|
 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 |
|
 |
Vitor |
Posted: Thu Nov 15, 2007 2:30 am Post subject: |
|
|
 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 |
|
 |
alfia_786 |
Posted: Thu Nov 15, 2007 1:06 pm Post subject: using COA for put acknowledgement |
|
|
Novice
Joined: 13 Nov 2007 Posts: 12
|
|
Back to top |
|
 |
bower5932 |
Posted: Thu Nov 15, 2007 2:37 pm Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
|
Back to top |
|
 |
|