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 » How to remove an uncommitted message?

Post new topic  Reply to topic
 How to remove an uncommitted message? « View previous topic :: View next topic » 
Author Message
mqlost
PostPosted: Fri Mar 10, 2006 8:52 am    Post subject: How to remove an uncommitted message? Reply with quote

Newbie

Joined: 10 Feb 2006
Posts: 7

A client has done it again and has left me with uncommitted message on a Local Queue. Normally I would use dspmqtrn and then rsvmqtrn, but for this particulare message I don't get the transaction number. I had this problem before on a XmitQ but then I only had to stop the channel. However anything short from restarting the queuemanager hasn't given me the transaction number.

I did some more research to uncommitted messages and read that you can only use dpsmqtrn in the second phase of the two phase commit. I don't know what type of commit is being used by the application but I was wondering that if this means I can't use the dpsmqtrn because of this how am I ever going to get ride of the message? Will the restart of the queuemanager do it, cause I sincelerly doubt that at the moment. I am hoping you smartypants here can help me with this.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Mar 10, 2006 1:59 pm    Post subject: Re: How to remove an uncommitted message? Reply with quote

Grand High Poobah

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

mqlost wrote:
A client has done it again and has left me with uncommitted message on a Local Queue. Normally I would use dspmqtrn and then rsvmqtrn, but for this particulare message I don't get the transaction number. I had this problem before on a XmitQ but then I only had to stop the channel. However anything short from restarting the queuemanager hasn't given me the transaction number.

I did some more research to uncommitted messages and read that you can only use dpsmqtrn in the second phase of the two phase commit. I don't know what type of commit is being used by the application but I was wondering that if this means I can't use the dpsmqtrn because of this how am I ever going to get ride of the message? Will the restart of the queuemanager do it, cause I sincelerly doubt that at the moment. I am hoping you smartypants here can help me with this.


Dealt with similar case earlier...

  1. Any message in a 2 phase commit that has been put to the queue will show in the queue depth
  2. If the client aborted before any prepare commit has been issued the message will not show up in dspmqtrn. The only way to get rid of it is to recycle the qmgr.
  3. If the client has issued a prepare commit before aborting you can rollback or force commit using a combination of dspmqtrn , grep, sed, rsvmqtrn...

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
mqlost
PostPosted: Mon Mar 13, 2006 2:30 am    Post subject: Reply with quote

Newbie

Joined: 10 Feb 2006
Posts: 7

Thanks for your answer.

With Recycle I think you mean a restart or do you mean something else?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Mar 13, 2006 3:54 am    Post subject: Reply with quote

Grand High Poobah

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

endmqm + strmqm
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
SAFraser
PostPosted: Thu Mar 16, 2006 10:50 am    Post subject: Reply with quote

Shaman

Joined: 22 Oct 2003
Posts: 742
Location: Austin, Texas, USA

I've got to say, this post from mqlost just cracked me up!

I request that the term "Grand Master" be officially changed to "Smarty Pants".

Submitted with a respectful smile,
Shirley
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Mar 16, 2006 7:13 pm    Post subject: Reply with quote

Grand High Poobah

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

Thanks for the accolade. Kiss on both cheeks.
F.J.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » How to remove an uncommitted message?
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.