|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
message driven beans question(urgent) |
« View previous topic :: View next topic » |
Author |
Message
|
k.srinivas |
Posted: Mon Jun 07, 2004 9:50 am Post subject: message driven beans question(urgent) |
|
|
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 |
|
 |
jefflowrey |
Posted: Mon Jun 07, 2004 10:04 am Post subject: Re: message driven beans question(urgent) |
|
|
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 |
|
 |
bower5932 |
Posted: Fri Jun 11, 2004 9:15 am Post subject: |
|
|
 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 |
|
 |
manoj |
Posted: Fri Jun 11, 2004 11:39 am Post subject: |
|
|
 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 |
|
 |
fjb_saper |
Posted: Fri Jun 11, 2004 5:31 pm Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
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
|
|
|
|