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 » General Discussion » MQ and non persistent data

Post new topic  Reply to topic
 MQ and non persistent data « View previous topic :: View next topic » 
Author Message
leitao
PostPosted: Wed May 25, 2005 11:08 am    Post subject: MQ and non persistent data Reply with quote

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
View user's profile Send private message MSN Messenger
jefflowrey
PostPosted: Wed May 25, 2005 11:12 am    Post subject: Reply with quote

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
View user's profile Send private message
JT
PostPosted: Wed May 25, 2005 11:19 am    Post subject: Reply with quote

Padawan

Joined: 27 Mar 2003
Posts: 1564
Location: Hartford, CT.

....or after consuming the message from the queue, issue a commit.
Back to top
View user's profile Send private message
leitao
PostPosted: Wed May 25, 2005 11:47 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
vennela
PostPosted: Wed May 25, 2005 12:30 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
JT
PostPosted: Wed May 25, 2005 2:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
leitao
PostPosted: Wed May 25, 2005 2:26 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
malammik
PostPosted: Wed May 25, 2005 4:11 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address
fjb_saper
PostPosted: Wed May 25, 2005 5:08 pm    Post subject: Reply with quote

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
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 » General Discussion » MQ and non persistent data
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.