Manoj
Manoj

Reputation: 5867

How to put back errorchannel message into reply channel?

I am planning to build a response object when the message comes to errorChannel and put back into the main reply channel of the gateway.

So that my consumer can get always a response object whether it is success or failure.

Is it possible to do that.?

Upvotes: 1

Views: 206

Answers (1)

Gary Russell
Gary Russell

Reputation: 174554

Yes, just return a response from the error flow and it will go to the caller.

Upvotes: 2

Related Questions