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 » message driven beans question(urgent)

Post new topic  Reply to topic
 message driven beans question(urgent) « View previous topic :: View next topic » 
Author Message
k.srinivas
PostPosted: Mon Jun 07, 2004 9:50 am    Post subject: message driven beans question(urgent) Reply with quote

Apprentice

Joined: 16 May 2002
Posts: 29
Location: chennai

Hi Guys,

I have a message driven bean application deployed in weblogic server8.1 sp1 and listening to a MQSeries queue.

The MDB would listen on the queue and would process the message and interacts with oracle database all in a unit of work

In case the unit of work failes,the message is required to be rolled back
and put into the original queue to which MDB is listening.

Further the same message should be consumed by MDB after a lapse of certain specified time.

My First Question:
Is there any way where I could specify a time interval in MDB or in MQSeries so that the MDB consume the same message after a certain lapse of time

My Second Question:
If the MDB could not process any message for a certain number of times, my requiremnet is to send this particular message to a poison queue.
Can anybody plz try to tell how to meet this requiremnt.

Thanks in advance for your kind help.

Regards
Sirini
Back to top
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Mon Jun 07, 2004 10:04 am    Post subject: Re: message driven beans question(urgent) Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

k.srinivas wrote:
My First Question:
Is there any way where I could specify a time interval in MDB or in MQSeries so that the MDB consume the same message after a certain lapse of time

Not specifically, no. You can roll the message back onto the same queue - but there's no way to "delay" the retry of the message until later, the message will be retried again as soon as it is rolled back. At least, there's no way without writing code to handle this.
k.srinivas wrote:
My Second Question:
If the MDB could not process any message for a certain number of times, my requiremnet is to send this particular message to a poison queue.
Can anybody plz try to tell how to meet this requiremnt.

By reading about Backout counts and Backout Queues.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
bower5932
PostPosted: Fri Jun 11, 2004 9:15 am    Post subject: Reply with quote

Jedi Knight

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

When you create your MDB's queue, you'll need to specify a backout queue and backout threshold so that the message will get moved to the backout queue after it gets rolled back enough times.

The key thing to watch is that your listener port retry is higher than your back out count. If it isn't, the message redelivery can shut down your listener port.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
manoj
PostPosted: Fri Jun 11, 2004 11:39 am    Post subject: Reply with quote

Master

Joined: 30 Jan 2002
Posts: 237
Location: Virgina

Is "Listener Port retry" same as the MDB's Maximum Message retry Limit ?
_________________
-manoj
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
fjb_saper
PostPosted: Fri Jun 11, 2004 5:31 pm    Post subject: Reply with quote

Grand High Poobah

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

The max retry for the MDB should always be at least one more than the backout threshold. The max port retry sounds like being the max retry for the MDB. Go for it, try it out in your dev system.
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 » IBM MQ Java / JMS » message driven beans question(urgent)
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.