I have an outbound node with protocol set to java/ws-client. The Inbound Data tab is set to Outbound Only. I’m attempting to account for the ways a web service request can fail and handle them accordingly. At the moment I’m working on connection failures (the web service provider returns connection refused). When the Apache CXF layer receives the ConnectionException from the socket layer, it bubbles up to the TPS layer and invokes my Tcl proc registered in Send Fail Procs. At the moment I simply log the occurrence.
From inspecting the logs, I see the request is retried over the appropriate interval as specified in the Retries and Interval. Finally the request message is tossed into the error DB.
I was hoping that I could have the message tossed into the recovery DB instead of the error DB. That way, when the web service provider eventually starts the web service, the messages could flow once more. Is there a message disposition that would cause this? Or perhaps a preferred alternative?
I considered setting the disposition to PROTO which, according the documentation, sends the message to the “head of the Outbound Post-TPS Queue.” But I’m afraid if I try that, it will result in an infinite loop and crash the site rather than simply place it in recovery.