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 » How to control Unit of work in Message flow using Databse Tr

Post new topic  Reply to topic
 How to control Unit of work in Message flow using Databse Tr « View previous topic :: View next topic » 
Author Message
Fady
PostPosted: Tue Jan 21, 2003 11:55 pm    Post subject: How to control Unit of work in Message flow using Databse Tr Reply with quote

Novice

Joined: 15 Jan 2003
Posts: 15
Location: Egypt , KSA

Hello :

I'm trying to control the unit of work inside a message flow
in this flow i'm using java plugin node that insert record in Database
and i'm using the class provided with MQSI MBNode that support unit of work and transaction failure handling.
after the java plugin node which insert record in the database i put compute node has the following Exp. Set I = 3/0; cause i need a failure happen.
the message goes to the fail queue prefctly but the Database transaction is not rolled back
bSQLStatement sqls=createSQLStatement("Trans",StrAdd,MbSQLStatement.SQL_TRANSACTION_AUTO);
sqls.execute(assembly);
I'm using the Constant MbSQLStatement.SQL_TRANSACTION_AUTO
which mean transaction commite at the end of the message follow
but it commite in the Database
thank you
Back to top
View user's profile Send private message Send e-mail MSN Messenger
kirani
PostPosted: Thu Jan 23, 2003 7:34 pm    Post subject: Reply with quote

Jedi Knight

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

Few things to check,
1. Have you configured your queue manager for 2-phase commit? If so, have you deployed your message flow in Globally Coordinated Transaction mode? What database are you using?
2. Is your catch terminal connected? At the end of MQInput node's catch path attach a Throw node to thrown back the Exception to MQInput node. Connect the failure terminal of MQInput node to FAIL queue.
_________________
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 » How to control Unit of work in Message flow using Databse Tr
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.