|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Why can a message be read two times ? |
« View previous topic :: View next topic » |
Author |
Message
|
tniuxs |
Posted: Mon Jul 19, 2004 4:38 am Post subject: Why can a message be read two times ? |
|
|
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 |
|
 |
jefflowrey |
Posted: Mon Jul 19, 2004 4:54 am Post subject: |
|
|
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 |
|
 |
PeterPotkay |
Posted: Mon Jul 19, 2004 10:22 am Post subject: |
|
|
 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 |
|
 |
bower5932 |
Posted: Mon Jul 19, 2004 12:01 pm Post subject: |
|
|
 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 |
|
 |
tniuxs |
Posted: Tue Jul 20, 2004 1:22 am Post subject: |
|
|
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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|