I am new to Spring Integration. Below given is my code.
<int-jms:message-driven-channel-adapter
id="testListenter" destination-name="testQueue"
channel="setTestHeader" concurrent-consumers="2"
max-concurrent-consumers="5" connection-factory="amqConnectionFactory" />
<http:outbound-gateway request-channel="httpChannel"
url="http://APITesting/testHttp/v1.0" http-method="POST"
header-mapper="headerMapper" reply-channel="response.header.enricher"
error-handler="testErrorHandler"
expected-response-type="com.test.domain.response.responseObject" message-converters="messageConverters" />
<util:list id="messageConverters">
<bean id="formHttpMessageConverter" class="org.springframework.http.converter.FormHttpMessageConverter"/>
<bean id ="mappingJackson2HttpMessageConverter" class="org.springframework.http.converter.json.MappingJackson2HttpMessageConverter"/>
</util:list>
I am not seeing any exceptions in my logs.
Now I am expecting the response to be a JSON. But If the response is not JSON and is of type raw, the outbound gateway is being fired atleast 7 times automatically.
Any help as why the API is being fired in case of scenarios like this?