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 » Why can a message be read two times ?

Post new topic  Reply to topic
 Why can a message be read two times ? « View previous topic :: View next topic » 
Author Message
tniuxs
PostPosted: Mon Jul 19, 2004 4:38 am    Post subject: Why can a message be read two times ? Reply with quote

Newbie

Joined: 19 Jul 2004
Posts: 2

Hello,

I'm working with a MDB deployed on a few instances of Weblogic and reading messages from a distant queue manager. Each message triggers a specific treatment.
As I can't use the XAConnection, I can't use the "exactly once" quality of service. If I use "at least once" I'd like to know what can cause a message to be treated 2 times (or more).

I want to understand the mechanism to plot the risks, and know when to look for a duplicated treatment.

For specific reasons (such as licence budget) I can't have a local queue manager on the same machine as the Weblogic server.

Thanks a lot for any help,

Tniuxs
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Jul 19, 2004 4:54 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Messages can be rolled back onto the input queue if an error occurs. This can cause a message to be seen twice by your application.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Mon Jul 19, 2004 10:22 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

If you check out the MQMD_Backoutcount on every MQGET, you can tell if this is the first time any app is getting this exact message, or if it has been rolled back to the queue x times.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
bower5932
PostPosted: Mon Jul 19, 2004 12:01 pm    Post subject: Reply with quote

Jedi Knight

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

You can use the Message.getJMSRedelivered() to see if a message is being redelivered.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
tniuxs
PostPosted: Tue Jul 20, 2004 1:22 am    Post subject: Reply with quote

Newbie

Joined: 19 Jul 2004
Posts: 2

Thanks for all that info !

I'd like to know when a "at least once" QOS can differ from a "exactly once" QOS. I need to explain what mechanism can make one act different from the other.

For all I know, in both cases an error causes a roll-back for MQ, and so the message is redeliverd, until the transaction is acted.

With all you gave, I can monitor the duplicate delivery, but I don't understand what the QOS changes, and why there could be trouble in not using XA connectionFactory.

Thanks again,

Tniuxs
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Why can a message be read two times ?
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.