Jose Carlos Canova
Jose Carlos Canova

Reputation: 129

Spring Integration CallBack Methods

Reading the Spring Integration samples, came a doubt in my mind.

I have a small application that given a scenario, a result from an "Integration Flow" is necessary to update a "result" in a "future".

Reading the MathServiceGateway sample didn't clarified too much.

Does anyone have a suggestion for a "call back" like functions, the Channel Interceptor seems to be a next promise, but an async computation fits better on the scenario for "requests-response" (WebClient - Service - Spring Integration - Get Response) like the caller remains on hold until the Integration Flow finishes.

The Idea is to retrieve a result from a computation executed inside the Spring Integration.

Regards.

Upvotes: 1

Views: 625

Answers (1)

Artem Bilan
Artem Bilan

Reputation: 121427

Please, see the Reference Manual on the matter.

You don't need to worry about any callback or some manual setting to the Future<?>. According to the Spring Integration Gateway component logic everything is done for you by Framework.

Upvotes: 0

Related Questions