Author |
Message
|
leitao |
Posted: Wed May 25, 2005 11:08 am Post subject: MQ and non persistent data |
|
|
Novice
Joined: 23 May 2005 Posts: 22 Location: Campinas - São Paulo - Brasil
|
Hello,
I have a problem, look about it.
I have a bean send msg to Queue in MQ. I have a MDB listening this queue. So when my MDB starts (via onMessage), the processing starts, so i have a problem inside my mdb, and a rollbacks is throwed. So, MQ send the message again, until my listener stops.
I want to send it once, and remove the message from MQ. is it Possible?
Thanks in advance
Breno _________________ Breno Henrique Leitão
CPqD IT & Telecom |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed May 25, 2005 11:12 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You can configure the MDB to use a backout queue.
Search for 'Backout' and 'MDB'. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
JT |
Posted: Wed May 25, 2005 11:19 am Post subject: |
|
|
Padawan
Joined: 27 Mar 2003 Posts: 1564 Location: Hartford, CT.
|
....or after consuming the message from the queue, issue a commit. |
|
Back to top |
|
 |
leitao |
Posted: Wed May 25, 2005 11:47 am Post subject: |
|
|
Novice
Joined: 23 May 2005 Posts: 22 Location: Campinas - São Paulo - Brasil
|
yes. this is true..
But i have another problem, i cant change the code.
To be true, the message, with rollback will not ocurr, but it is a deployment test, it is ocurring and the queue still filled.
Understood, or still dirty yet?
[]'s
Breno _________________ Breno Henrique Leitão
CPqD IT & Telecom |
|
Back to top |
|
 |
vennela |
Posted: Wed May 25, 2005 12:30 pm Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
leitao:
jefflowrey wrote: |
You can configure the MDB to use a backout queue.
Search for 'Backout' and 'MDB'. |
|
|
Back to top |
|
 |
JT |
Posted: Wed May 25, 2005 2:24 pm Post subject: |
|
|
Padawan
Joined: 27 Mar 2003 Posts: 1564 Location: Hartford, CT.
|
Is WAS & MQ running on OS/390?
If so, you could take advantage of the PUT option: MQGMO_MARK_SKIP_BACKOUT, which as the name indicates, prevents the message from being involved in the backout process.
Quote: |
But i have another problem, i cant change the code. |
If this truly is the case, then checking the BackoutCount and off-loading the message to the BackoutRequeue is also not feasible. |
|
Back to top |
|
 |
leitao |
Posted: Wed May 25, 2005 2:26 pm Post subject: |
|
|
Novice
Joined: 23 May 2005 Posts: 22 Location: Campinas - São Paulo - Brasil
|
No, i am not running in OS/390 yet.
But i increase the the times my listener tries before dying and i increase the botresh in the MQ. not, before the listener death, the message is marqued as dead letter.
Cheers,
Breno _________________ Breno Henrique Leitão
CPqD IT & Telecom |
|
Back to top |
|
 |
malammik |
Posted: Wed May 25, 2005 4:11 pm Post subject: |
|
|
 Partisan
Joined: 27 Jan 2005 Posts: 397 Location: Philadelphia, PA
|
I believe there is a setting on WAS on message listener which tells the message listener to stop processing all messages if it backs out the same msg more than X times. I am not super 100% sure about this though. It's been a very very long day. _________________ Mikhail Malamud
http://www.netflexity.com
http://groups.google.com/group/qflex |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed May 25, 2005 5:08 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
WAS +MDB
a) Set backout threshold on queue to x
b) Set retries on MDB to x + 1
c) if no backout queue is set the poison message goes to the DLQ reason 2063. If a backout queue is set the message goes to the backout queue.
Enjoy
 |
|
Back to top |
|
 |
|