|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Question on MDB retry interval |
« View previous topic :: View next topic » |
Author |
Message
|
whmanutd |
Posted: Mon Mar 22, 2004 5:51 pm Post subject: Question on MDB retry interval |
|
|
Newbie
Joined: 22 Mar 2004 Posts: 3
|
Hi, MQ Gurus:
I am quite a beginner for MQ, and currently running into the problem of setting "retry interval" (of how long the JMS provider will re-send the message).
The MDB that I am working on is a pub/sub one. The JMS provider is the Websphere Embedded MQ.
It looks like a simple question, but I have tried all the places from Websphere Admin Console without any results.
Could you please help me out. Thanks a lot!
Jian |
|
Back to top |
|
 |
bower5932 |
Posted: Mon Mar 22, 2004 6:03 pm Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
By interval, I would think that you mean that amount of time that the MDB waits to receive messages, but your question sounded like it dealt more with the various redelivery parameters:
ListenerPort = maximum retries
MQ queue = backout threshold (default of 5 with WAS embedded JMS)
Message = redelivery count
You need to set the first two parameters so that the backout threshold is lower than the maximum retries. This will allow the message to be delivered and rolled back until the backout threshold is reached. Once the threshold is reached, the message is requeued to the backout queue.
If the backout threshold is higher than the maximum retries, the message will get redelivered maximum retries times and then shut down the listener port. |
|
Back to top |
|
 |
bower5932 |
Posted: Mon Mar 22, 2004 6:04 pm Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
|
Back to top |
|
 |
whmanutd |
Posted: Tue Mar 23, 2004 10:25 am Post subject: |
|
|
Newbie
Joined: 22 Mar 2004 Posts: 3
|
Bower, thanks a lot for your reply.
I am sorry that I didn't describe my question well.
The transaction type of our MDB is "Container Managed". On certain condition, we would like to use
Code: |
MessageDrivenContext.setRollbackOnly() |
to rollback the transaction, and let the Websphere embedded JMS Provider to re-send the message.
But I failed to located where to set the interval for the JMS Provider to re-send after a failed transaction, from the Websphere Admin Console. It is not about the MDB side.
Or a MDB just gets the message by polling (by POLLINGINT), instead of being "notified"?
Any hints will be highly appreciated.
Jian |
|
Back to top |
|
 |
bower5932 |
Posted: Tue Mar 23, 2004 4:45 pm Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
If you are using an MDB, then the rollback should give the message back to the message provider. The message provider (ie, ListenerPort) will then redeliver the message back to your MDB. I don't believe there is any way to configure a time-out between your rollback and the redelivery.
However, you could alway sleep before issuing the rollback. |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Mar 23, 2004 4:58 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
bower5932 wrote: |
you could alway sleep before issuing the rollback. |
eiuuu. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
bower5932 |
Posted: Tue Mar 23, 2004 10:12 pm Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
I didn't say that I would do it, but it is an option.  |
|
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
|
|
|
|