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 » MQInput - Commit when UOW passes

Post new topic  Reply to topic
 MQInput - Commit when UOW passes « View previous topic :: View next topic » 
Author Message
long.hoang
PostPosted: Mon Dec 08, 2008 4:15 pm    Post subject: MQInput - Commit when UOW passes Reply with quote

Novice

Joined: 18 Sep 2007
Posts: 13

Is it possible to set the MQInput or MQOutput node to only commit messages to queue when the whole unit of work has passed?

We got a flow that read one message from queue and split to several messages, but we don't want to send any message out if 1 of the splitted message fail validation.

However, we don't want to use the groupID since there are a several instances of flow running at once (for performance)

Thanks in advance.
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Dec 09, 2008 12:57 am    Post subject: Re: MQInput - Commit when UOW passes Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

long.hoang wrote:
Is it possible to set the MQInput or MQOutput node to only commit messages to queue when the whole unit of work has passed?


Yes. Both nodes can be set to be transactional.


_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
long.hoang
PostPosted: Tue Dec 09, 2008 3:49 pm    Post subject: Reply with quote

Novice

Joined: 18 Sep 2007
Posts: 13

Thanks, but both these nodes' Transaction Mode had already been set to "Yes" but I still get one message to output queue and one message to error queue

Is there anything to do with the Propagating? The flow is:

MQInput -> Compute Node:[Propagate Delete None] for each split -> Compute Node:[Validation] -> MQOuput
Back to top
View user's profile Send private message
Ric-Tic
PostPosted: Tue Dec 09, 2008 4:36 pm    Post subject: Reply with quote

Apprentice

Joined: 18 Nov 2003
Posts: 38
Location: Zurich, Switzerland

long.hoang wrote:
Thanks, but both these nodes' Transaction Mode had already been set to "Yes" but I still get one message to output queue and one message to error queue

Is there anything to do with the Propagating? The flow is:

MQInput -> Compute Node:[Propagate Delete None] for each split -> Compute Node:[Validation] -> MQOuput


Did you RETURN FALSE; as your last statement out of the Compute Node?

see http://127.0.0.1:65375/help/topic/com.ibm.etools.mft.doc/ac12370_.htm
Back to top
View user's profile Send private message
long.hoang
PostPosted: Tue Dec 09, 2008 5:13 pm    Post subject: Reply with quote

Novice

Joined: 18 Sep 2007
Posts: 13

Nah, both Compute nodes end with Return TRUE

1st Compute Node:
...
WHILE...
SET OutputRoot.MRM = ...
PROPAGATE DELETE NONE;
END WHILE;
SET OutputRoot.MRM = ...
RETURN TRUE;

2nd Compute node only have RETURN TRUE;

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

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » MQInput - Commit when UOW passes
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.