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 » WebSphere Message Broker (ACE) Support » DATA BASE Problem..

Post new topic  Reply to topic
 DATA BASE Problem.. « View previous topic :: View next topic » 
Author Message
chanduy9
PostPosted: Sun Aug 04, 2002 3:54 pm    Post subject: DATA BASE Problem.. Reply with quote

Disciple

Joined: 28 Nov 2001
Posts: 177
Location: USA

Hi,
How the data base transactions will work in normal conditions...like i have one input, database,compute and two out put nodes. All error terminals are connected to error queue. My data base is updating even error occurs..but it has to roll back. I am using DB2 database.
The transaction mode is set to yes. Coordinate Transaction check box is not checked.
Thanks in advance..
Chandra.
Back to top
View user's profile Send private message
kirani
PostPosted: Sun Aug 04, 2002 5:54 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

Chandra,

If you want your Database updates to coordinate with MQSeries commit or rollback, you should use 2-phase commit. Your queue manager will act as transaction manager and your database manager will participate in global transaction as resource manager. You will have to configure your message flow to run in Coordinated Transaction mode. By default your transactions are broker coordinated.

For more information on how to configure 2-phase commit please refer to Chapter 12 in MQseries System Administration book.
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
amigupta1978
PostPosted: Sun Aug 04, 2002 8:03 pm    Post subject: Reply with quote

Centurion

Joined: 22 Jan 2002
Posts: 132
Location: India

Hi,
A lil more update on ur problem.
Actually when u connect the error/catch terminal of any node in MQSeries then when the error happens, the flow goes thru your catch/error terminal and if that path is successful it will COMMIT any changes it has made.
When msg flow backsout to either the MQinput terminal's failure node or goes back to input queue for backout then only it rollbacks any changes.


Regards,
Amit
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
chanduy9
PostPosted: Mon Aug 05, 2002 6:37 am    Post subject: how to configure 2-phase commit in MQSI Reply with quote

Disciple

Joined: 28 Nov 2001
Posts: 177
Location: USA

Hi,
I want to develop a message flow with commit/roll back. I want to update the data base if and only if the message is sucess, othere wise it has to roll back. Advice me...
Thanks,
Chandra.
Back to top
View user's profile Send private message
sgopal
PostPosted: Mon Aug 05, 2002 7:37 am    Post subject: Reply with quote

Acolyte

Joined: 30 Jul 2002
Posts: 63

Again -> There are a couple of ways of doing this depending on your requirement. Please refer the MQseries System Administration and Developing Solutions in Websphere MQ Integrator books for details. Let me know if you have any further questions.
Back to top
View user's profile Send private message
kirani
PostPosted: Mon Aug 05, 2002 7:58 am    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

Chandra,

As Amit said, you will have to design your message flow in such a way that all errors are thrown back to the MQInput node. For example,

MQInput(out)->Compute1->Database1->MQOutput1
MQInput(catch)->Trace1->...other nodes to handle error->MQOutput2->Throw1

In above message flow, if any error occurs in Out path of MQInput node, an Exception will be thrown and message will rollback to the MQInput node. In catch terminal, you will do your error processing and then Throw back the Exception to MQInput node for dB updates to rollback. Before you throw the error, you are going to log the error into Error queue using MQOuput2 node. Transaction mode for this node should be set to 'No'.

For more info pl go thru the Redbook suggested by sgopal.
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » DATA BASE Problem..
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.