Posted: Thu Mar 03, 2011 6:48 am Post subject: Rollback to Input Queue from SAPRequest Node
Acolyte
Joined: 16 Apr 2010 Posts: 52
Hi,
I have message a flow that looks like this
MQInput --> Compute --> SAPRequest
|
V
Catch flow
My catch flow handles all the exceptions that are generated beyond it.
I want to handle internal error that occurs in the SAPRequest node (e.g. unable to reach SAP system) by rolling back the message to the input queue.
I supposed the right way to do this is to connect the failure terminal on the SAPRequest node with a Throw node? Will this message then be captured by the catch flow? Does it mean I also have to include a Throw node within the catch flow in order for the message to be rollback to the input node?
connecting the failure terminal to a throw node the best way for it to return back to the input node where if your catch node is connected it will proceed to conclusion down this route providing no other failures happen, this should be the end of the transaction for that message.
If the catch terminal is not wired it will go back on to the input queue and check if the backout threshhold is exceeded, if execeeded the fail path of the input node, if not exceeded the backout queue obviously, if no fail path and no backout queue the dead letter queue of the QM.
do not see why you would want to deliberatley throw in the catch path tbh for it to then go up the failure path, choose where you want to capture your exceptions and then do it there, the fail path should be wired only because the catch path has genuinely failed not becvause you forced it.
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