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 » RollBack Strategy for batch Request

Post new topic  Reply to topic
 RollBack Strategy for batch Request « View previous topic :: View next topic » 
Author Message
bprasana
PostPosted: Fri Aug 02, 2013 7:21 am    Post subject: RollBack Strategy for batch Request Reply with quote

Disciple

Joined: 18 Apr 2005
Posts: 179

Hi,
I am using WMB 8.0.0.1.
We receive a request as SOAP over HTTP.
at ESB we have to split the message into multiple parts and send them one by one to MQ.

Requirement is ROLLBACK ONLY failed messages and not the entire batch. We are supposed to continue processing till the last record.
Exception needs to be raised only for failed messages.

If I use a loop to send multiple propagate statements on any failure during the mapping or during the 'PUT to Q', the entire batch gets rolled back.

We thought of having a try catch node before this 'while loop' compute nde and then try to record the exception list in Catch path. And connect the catch path back to same while loop so that while loop processes from where it has left. We are setting suitable Environment variables to ensure while loop processes only from where it has left.
in the catch path we also include a flow order node to first send the message back to Main path and then Throw exception after all records are processed.

Conceptually this should work. But Looks like a complex solution for a simple problem. So Is there a better strategy? What approach did you take?
Back to top
View user's profile Send private message
bprasana
PostPosted: Fri Aug 02, 2013 7:25 am    Post subject: sorry please delete this post Reply with quote

Disciple

Joined: 18 Apr 2005
Posts: 179

I dint realise i was posting in a wrong forum. Please delete.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Fri Aug 02, 2013 10:27 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

I would not use WMB transaction mode for this (ie. I would set Transaction mode to off).

I would make use of GlobalCache and do all my transforms one-by-one into GlobalCache objects. When all records have been processed, drop the successfully transformed messages into the queue.

You need to be off 8.0.0.1. Your toolkit needs to be at least 8.0.0.2 iFix 001. Runtime similar.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
dogorsy
PostPosted: Fri Aug 02, 2013 10:38 am    Post subject: Re: RollBack Strategy for batch Request Reply with quote

Knight

Joined: 13 Mar 2013
Posts: 553
Location: Home Office

bprasana wrote:
Hi,
I am using WMB 8.0.0.1.
We receive a request as SOAP over HTTP.
at ESB we have to split the message into multiple parts and send them one by one to MQ.

Requirement is ROLLBACK ONLY failed messages and not the entire batch. We are supposed to continue processing till the last record.
Exception needs to be raised only for failed messages.

If I use a loop to send multiple propagate statements on any failure during the mapping or during the 'PUT to Q', the entire batch gets rolled back.

We thought of having a try catch node before this 'while loop' compute nde and then try to record the exception list in Catch path. And connect the catch path back to same while loop so that while loop processes from where it has left. We are setting suitable Environment variables to ensure while loop processes only from where it has left.
in the catch path we also include a flow order node to first send the message back to Main path and then Throw exception after all records are processed.

Conceptually this should work. But Looks like a complex solution for a simple problem. So Is there a better strategy? What approach did you take?


why are you posting the same question again ?...
I have already given you the answer in the first post
Back to top
View user's profile Send private message
dogorsy
PostPosted: Fri Aug 02, 2013 10:41 am    Post subject: Reply with quote

Knight

Joined: 13 Mar 2013
Posts: 553
Location: Home Office

lancelotlinc wrote:
I would not use WMB transaction mode for this (ie. I would set Transaction mode to off).

I would make use of GlobalCache and do all my transforms one-by-one into GlobalCache objects. When all records have been processed, drop the successfully transformed messages into the queue.

You need to be off 8.0.0.1. Your toolkit needs to be at least 8.0.0.2 iFix 001. Runtime similar.


nope, the answer is a continue handler in the esql. That was answered in the original post, but some people like asking the same question several times, maybe that way they get more answers ?...
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Aug 02, 2013 10:43 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20703
Location: LI,NY

dogorsy wrote:
nope, the answer is a continue handler in the esql. That was answered in the original post, but some people like asking the same question several times, maybe that way they get more answers ?...


You obviously missed
Quote:
I didn't realize i was posting in a wrong forum. Please delete.
and sorry I moved instead of simply deleting...
_________________
MQ & Broker admin
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 » WebSphere Message Broker (ACE) Support » RollBack Strategy for batch Request
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.