Hello,
I am just starting to use spring-integration so forgive me if the question is too obvious. I read the reference manual however did not find the details I was after.
What I would like to do is to receive a payload over HTTP Post, process a service and return a replay. The replay should not wait to the service call to complete.
In the the following configuration, the view is not being executed therefore the replay is empty:
However when I changed the gateway to the following, the view is executed but only after the service is being called:Code:<bean id="inboundGateway" class="org.springframework.integration.http.HttpInboundEndpoint" p:requestChannel-ref="textServiceChannel" p:replyChannel-ref="httpResponse" /> <integration:channel id="httpResponse"/> <http:inbound-channel-adapter id="httpResponseAdapter" channel="httpResponse" view="simpleView" supported-methods="POST" /> <integration:channel id="textServiceChannel" /> <integration:service-activator input-channel="textServiceChannel" ref="textService" output-channel="streamOutput"/> <stream:stdout-channel-adapter id="streamOutput"/> <bean id="textService" class="test.TextService"/> <bean id="simpleView" class="views.SimpleView"/>
what am I doing wrong ?Code:<bean id="inboundGateway" class="org.springframework.integration.http.HttpInboundEndpoint" p:requestChannel-ref="textServiceChannel" p:replyChannel-ref="httpResponse" p:view-ref="simpleView" />
Thank you in advance
/Lior.


Reply With Quote