Posted: Mon May 05, 2014 6:32 am Post subject: How do force writing msg to dlq with flow w/ soapInput Node
Apprentice
Joined: 05 Jan 2002 Posts: 39
I have a flow which has a soap input node operating in gateway mode which also executes a backend web service and sends the soap reply back to the requestor. In certain situations AFTER the soap reply is returned - I write a message to a queue to drive another downstream process. I have a trycatch node wired before writing to the mqoutput node so that I can create a backout message and failure information in a 'backout' queue if the put to the queue fails. This works wonderfully as expected. However - in the exception situation if I also have problems writing to the backout queue - I want the message written to the dead letter queue. Because the trycatch catch terminal is wired to write to our backout queue - if that fails - the message rolls back to the original soap input queue. Of course there - i have the catch wired to handle various soap errors for the original soap request - I don't want the soap requestor to know anything about this - they are long gone.
I can hardwire to the dlq by connecting to the 'failure' terminal of the backout msg mqoutput node and this works - but it doesn't seem right.
Posted: Mon May 05, 2014 7:47 am Post subject: Re: How do force writing msg to dlq with flow w/ soapInput N
Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
sclarke wrote:
I can hardwire to the dlq by connecting to the 'failure' terminal of the backout msg mqoutput node and this works - but it doesn't seem right.
thoughts? no flames please....
Why? That's exactly what you are supposed to do in this case... and don't forget to add the DLQ header before writing the message to the DLQ... _________________ MQ & Broker admin
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