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 » jms failure - what to do with message?

Post new topic  Reply to topic
 jms failure - what to do with message? « View previous topic :: View next topic » 
Author Message
bamboozled_by_MQ
PostPosted: Sat Oct 16, 2004 1:23 pm    Post subject: jms failure - what to do with message? Reply with quote

Voyager

Joined: 07 Jan 2004
Posts: 75

question:

if a MDB picks up messages from an IBM MQ native queue and processes them and passes the object/data to other components writing to database ect...

what if something happens and an error occurs and it was never written to the DB, how could you then get the message back.

has anyone dealt with a scenario such as this?

do you make a copy of the message and hold it on another queue until you get confirmation that the message was received and written to the DB successfully?

thank you
Back to top
View user's profile Send private message
vennela
PostPosted: Sat Oct 16, 2004 1:42 pm    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

I have never done this. But you should be able to do a 2-phase commit.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
bower5932
PostPosted: Mon Oct 18, 2004 6:08 am    Post subject: Reply with quote

Jedi Knight

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

It sounds like you need to use container managed transactions (ie, get your message in a transaction) and use a two-phase commit to make your database update. If you have problems, you can rollback and get the message redelivered.
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 » jms failure - what to do with message?
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.