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 » IBM MQ Java / JMS » Question on MDB retry interval

Post new topic  Reply to topic
 Question on MDB retry interval « View previous topic :: View next topic » 
Author Message
whmanutd
PostPosted: Mon Mar 22, 2004 5:51 pm    Post subject: Question on MDB retry interval Reply with quote

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
View user's profile Send private message
bower5932
PostPosted: Mon Mar 22, 2004 6:03 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
bower5932
PostPosted: Mon Mar 22, 2004 6:04 pm    Post subject: Reply with quote

Jedi Knight

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

If you did mean timing, check out:

http://www.mqseries.net/phpBB/viewtopic.php?t=14276

which has a discussion and link on the pollingint.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
whmanutd
PostPosted: Tue Mar 23, 2004 10:25 am    Post subject: Reply with quote

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
View user's profile Send private message
bower5932
PostPosted: Tue Mar 23, 2004 4:45 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
jefflowrey
PostPosted: Tue Mar 23, 2004 4:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
bower5932
PostPosted: Tue Mar 23, 2004 10:12 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Question on MDB retry interval
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.