Author |
Message
|
saikat89 |
Posted: Mon Sep 10, 2012 1:07 am Post subject: identifying a message from log |
|
|
Novice
Joined: 06 Sep 2012 Posts: 15
|
Hi all!
Application team wants to to confirm confirm whether a particular message has been passed/sent/received by a queue.Can I use dmpmqlog?Is there any other method?
Is there anything like TRN to identify a message?How to identify a message? Is their any idno present in log for messages passed through a queue manager
?
Regards,
saikat |
|
Back to top |
|
 |
exerk |
Posted: Mon Sep 10, 2012 1:11 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
If the application team want auditing the should include it within their code. Otherwise there are third-party applications that will do auditing for them (make sure the application team fund it) or there are offerings from one of the sponsors of this site which will allow recovery of messages from logs.
My advice is: don't let the shortcomings of the application team become a rod for your back, i.e. cause management-intensive tasks for you! _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
 |
nathanw |
Posted: Mon Sep 10, 2012 2:26 am Post subject: |
|
|
 Knight
Joined: 14 Jul 2004 Posts: 550
|
exerk wrote: |
If the application team want auditing the should include it within their code. Otherwise there are third-party applications that will do auditing for them (make sure the application team fund it) or there are offerings from one of the sponsors of this site which will allow recovery of messages from logs.
My advice is: don't let the shortcomings of the application team become a rod for your back, i.e. cause management-intensive tasks for you! |
sounds to me like message affinity ie has a db create happened so they can carry out an update
but I also agree with exerk they know what has been processed alot easier than you _________________ Who is General Failure and why is he reading my hard drive?
Artificial Intelligence stands no chance against Natural Stupidity.
Only the User Trace Speaks The Truth  |
|
Back to top |
|
 |
saikat89 |
Posted: Mon Sep 10, 2012 5:31 am Post subject: |
|
|
Novice
Joined: 06 Sep 2012 Posts: 15
|
exerk wrote: |
If the application team want auditing the should include it within their code. Otherwise there are third-party applications that will do auditing for them (make sure the application team fund it) or there are offerings from one of the sponsors of this site which will allow recovery of messages from logs.
My advice is: don't let the shortcomings of the application team become a rod for your back, i.e. cause management-intensive tasks for you! |
Hi !
Thanks for your reply.
Few more doubts. Need your help.
1.So, dmpmqlog can't be used for this purpose?
2.Actually in our case, the application team states that a particular message has tansmitted status in our ServerA but it has not reached Server B.So, they want to confirm whether the message has come to MQ itself or not. Is there any way from MQ side?
3.What is TRN in a message? for e.g, TRN " SAA33572212"
Regards,
Saikat |
|
Back to top |
|
 |
exerk |
Posted: Mon Sep 10, 2012 6:10 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
saikat89 wrote: |
1.So, dmpmqlog can't be used for this purpose? |
Correct, it cannot be used for what you want.
saikat89 wrote: |
2.Actually in our case, the application team states that a particular message has tansmitted status in our ServerA but it has not reached Server B. So, they want to confirm whether the message has come to MQ itself or not. Is there any way from MQ side? |
You're now into the realms of COA and COD messages, and that's a route you really do not want to go down.
saikat89 wrote: |
3.What is TRN in a message? for e.g, TRN " SAA33572212" |
Presumably the unique transaction ID. _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
 |
nathanw |
Posted: Mon Sep 10, 2012 6:14 am Post subject: |
|
|
 Knight
Joined: 14 Jul 2004 Posts: 550
|
saikat89 wrote: |
2.Actually in our case, the application team states that a particular message has tansmitted status in our ServerA but it has not reached Server B.So, they want to confirm whether the message has come to MQ itself or not. Is there any way from MQ side?
|
Simple answer is that unless every message has been stored in a db or queue somewhere then no.
Simple logic here
If a message is received by MQ (and this should be checked) and it has not bee received by target app then
a) check target app is not losing / erroring message on read
b) check MQ logs for any error at same time of processing
MQ should not lose a message it may be on a DLQ or Failure queue somewhere.
The message may have been sent to the app but not received by MQ
check the apps error logs _________________ Who is General Failure and why is he reading my hard drive?
Artificial Intelligence stands no chance against Natural Stupidity.
Only the User Trace Speaks The Truth  |
|
Back to top |
|
 |
Vitor |
Posted: Mon Sep 10, 2012 6:18 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
saikat89 wrote: |
1.So, dmpmqlog can't be used for this purpose? |
No. <plug>But a 3rd party commercial tool from this forum's sponsors can be so used </plug>
saikat89 wrote: |
2.Actually in our case, the application team states that a particular message has tansmitted status in our ServerA but it has not reached Server B.So, they want to confirm whether the message has come to MQ itself or not. Is there any way from MQ side? |
This "WMQ lost my message" is the most common claim made by developers. The first step to confirm this is to have the application team prove that the message actually reached WMQ by showing you the non-zero from the put / send.
After that it's a message hunt.
saikat89 wrote: |
3.What is TRN in a message? for e.g, TRN " SAA33572212" |
This is not a WMQ concept. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
saikat89 |
Posted: Mon Sep 10, 2012 7:03 am Post subject: |
|
|
Novice
Joined: 06 Sep 2012 Posts: 15
|
Quote: |
After that it's a message hunt. |
--How can I do it apart from using the third party tool?
Regards,
Saikat |
|
Back to top |
|
 |
saikat89 |
Posted: Mon Sep 10, 2012 7:10 am Post subject: |
|
|
Novice
Joined: 06 Sep 2012 Posts: 15
|
Quote: |
The message may have been sent to the app but not received by MQ |
How can I prove it?
Regards,
Saikat |
|
Back to top |
|
 |
exerk |
Posted: Mon Sep 10, 2012 7:12 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
saikat89 wrote: |
Quote: |
After that it's a message hunt. |
--How can I do it apart from using the third party tool?
Regards,
Saikat |
Ensure the applications audit themselves... _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
 |
exerk |
Posted: Mon Sep 10, 2012 7:15 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
saikat89 wrote: |
Quote: |
The message may have been sent to the app but not received by MQ |
How can I prove it?
Regards,
Saikat |
When applications people tell me that WMQ has lost their message, generally my first response is: "...prove to me that your application got the message into WMQ in the first place...", and as they generally can't I ask them to provide funding for a tool that will audit, or expect them to change their code to provide that audit. I suggest that's a good line for you to take too. _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
 |
nathanw |
Posted: Mon Sep 10, 2012 7:21 am Post subject: |
|
|
 Knight
Joined: 14 Jul 2004 Posts: 550
|
the app writes to a queue correct?
therefore put the queue into get inhibit mode so the message will stay there.
once in that mode tell them to send a message and if the number count goes up then it has arrived
oh and make sure that no other apps are writing to the queue at the same time
this will prove that the app is writing to the queue
if this is a success ie you see a message arrive then start from the other end ie the target app reading from the queue
you know there is a message on the queue so get them to read the queue and if it is read then you know the app is reading correctly
you can also say that the issue is not part of MQ but application
oh and dont forget to to get allow the queue to enable the target app to read _________________ Who is General Failure and why is he reading my hard drive?
Artificial Intelligence stands no chance against Natural Stupidity.
Only the User Trace Speaks The Truth  |
|
Back to top |
|
 |
saikat89 |
Posted: Mon Sep 10, 2012 8:03 am Post subject: |
|
|
Novice
Joined: 06 Sep 2012 Posts: 15
|
Quote: |
Correct, it cannot be used for what you want. |
---So, what for we dump the logcontents using this command? |
|
Back to top |
|
 |
nathanw |
Posted: Mon Sep 10, 2012 8:14 am Post subject: |
|
|
 Knight
Joined: 14 Jul 2004 Posts: 550
|
ok re read the thread and look at what people have posted and then you will see for yourself
try doing some actions yourself _________________ Who is General Failure and why is he reading my hard drive?
Artificial Intelligence stands no chance against Natural Stupidity.
Only the User Trace Speaks The Truth  |
|
Back to top |
|
 |
Vitor |
Posted: Mon Sep 10, 2012 8:16 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
saikat89 wrote: |
Quote: |
Correct, it cannot be used for what you want. |
---So, what for we dump the logcontents using this command? |
Typically you use it when IBM Support asks for it.
One key issue for your use case is this:
Quote: |
Do not dump the log while the queue manager is running, and do not start the queue manager while dmpmqlog is running |
Even assuming this command did want you want it to do, it's not feasible to shut down the queue manager every time the application people lose a message. It's inconvienient in Development, disruptive in QA and represents a loss of service with cost implications in Production.
Do you really want to tell your management you want to shut down an otherwise working and productive production queue manager to play hunt the message? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|