Author |
Message
|
ashishsuvarna |
Posted: Tue Mar 28, 2006 1:14 am Post subject: Message not visible on a queue |
|
|
 Apprentice
Joined: 25 Dec 2005 Posts: 30 Location: INDIA
|
One of the queues shows up the current depth as 1 but when we browse the queue the queue is empty. There are no open handles on the queue and we do not get error message while opening the queue. Can someone point out the reason for this. _________________ Young techie |
|
Back to top |
|
 |
mvic |
Posted: Tue Mar 28, 2006 1:23 am Post subject: Re: Message not visible on a queue |
|
|
 Jedi
Joined: 09 Mar 2004 Posts: 2080
|
|
Back to top |
|
 |
ashishsuvarna |
Posted: Tue Mar 28, 2006 1:31 am Post subject: |
|
|
 Apprentice
Joined: 25 Dec 2005 Posts: 30 Location: INDIA
|
The fact that the queue status in MQ explorer does not bring up anything, can I rule out the possibility that the putting appliation has not committed the message ? I am checking it using MQ Explorer from an other box as I do not have direct entry into that box. _________________ Young techie |
|
Back to top |
|
 |
mvic |
Posted: Tue Mar 28, 2006 1:40 am Post subject: |
|
|
 Jedi
Joined: 09 Mar 2004 Posts: 2080
|
ashishsuvarna wrote: |
The fact that the queue status in MQ explorer does not bring up anything, can I rule out the possibility that the putting appliation has not committed the message ? I am checking it using MQ Explorer from an other box as I do not have direct entry into that box. |
I would like to understand, why does it matter whether the message is uncommitted etc.? If it is uncommitted, there is no problem as far as the queue manager is concerned. (Presumably there is some reason why the app has not yet committed the PUT / GET it was doing?) |
|
Back to top |
|
 |
ashishsuvarna |
Posted: Tue Mar 28, 2006 1:59 am Post subject: |
|
|
 Apprentice
Joined: 25 Dec 2005 Posts: 30 Location: INDIA
|
Is it possible that the application has dis-connected from the queue without committing the message ? I ask this because queue status does not bring anything up. _________________ Young techie |
|
Back to top |
|
 |
vennela |
Posted: Tue Mar 28, 2006 2:04 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
I think you need to refresh your window.
ashishsuvarna wrote: |
Is it possible that the application has dis-connected from the queue without committing the message |
I don't think so. You need to read more about unit of works and syncpoint and commit/rollback |
|
Back to top |
|
 |
ashishsuvarna |
Posted: Tue Mar 28, 2006 2:29 am Post subject: |
|
|
 Apprentice
Joined: 25 Dec 2005 Posts: 30 Location: INDIA
|
Windows are refreshed, but still we have the same situation. I am aware that even if application disconnects from a queue without committing a unit of work it will simply roll back all messages within that unit of work. Is there anything else that could be going on here ? _________________ Young techie |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Mar 28, 2006 4:39 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Yes. Imagine a multiphase commit. The application exits without executing the "prepare commit" or commit. The message is a "ghost" message. It is not committed and not in a gettable state. As the prepare commit has not been called it is not visible through dspmqtrn. It will disappear when you recycle the qmgr.
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
ashishsuvarna |
Posted: Tue Mar 28, 2006 4:49 am Post subject: |
|
|
 Apprentice
Joined: 25 Dec 2005 Posts: 30 Location: INDIA
|
I believe I read somewhere that if an application tries to exit without committing the queue manager will roll back the changes. Is there an exception to this rule ? _________________ Young techie |
|
Back to top |
|
 |
mvic |
Posted: Wed Mar 29, 2006 9:27 am Post subject: |
|
|
 Jedi
Joined: 09 Mar 2004 Posts: 2080
|
|
Back to top |
|
 |
|