Questions tagged [spring-integration-http]

136 questions
3
votes
1 answer

Spring Integration Testing of Outbound Http Enpoint

I am new to the Spring Integration project, now I need to create a flow with Java DSL and test it. I came up with these flows. First one should run by cron and invoke second one, which invokes HTTP endpoint and translates XML response to POJO: …
3
votes
2 answers

Why client gets 500 response error although server doesn't experience any errors in spring-integration-http?

I have following server configuration: @Configuration @EnableIntegration public class Config { @Bean public IntegrationFlow integrationFlow() { return IntegrationFlows.from(Http.inboundGateway("/spring_integration_post") …
3
votes
1 answer

Can I access headers in http channel inbound adapter status code expression?

I have an HTTP inbound channel adapter so configured:
watery
  • 5,026
  • 9
  • 52
  • 92
3
votes
1 answer

Dynamic http inbound gateway using spring-integration-dsl

I am trying to create and register runtime Integration flow for HTTP inbound gateway using Java DSL as code provided below @Autowired private IntegrationFlowContext flowContext; public static void main(String[] args) { …
3
votes
1 answer

Sprint Integration DSL - Http Inbound adapter and poller

I'm fairly new to Spring Integration and I'm trying to setup a simple use case: polling a remote REST endpoint, split the returned payload into multiple lines and send it to a Kafka outbound adapter. I successfully did something analogous, which…
2
votes
0 answers

Spring Integration: How to configure header-mapper globally

I have an application listening to different sources of events. For each of this events, I build an IntegrationFlow, where I just pipeline operations like filter and transform, and finally send this message to another API, via an HTTP request. All…
2
votes
1 answer

Exception starting up SpringBootApplication - Unable to start web server

Below is the stack trace in starting up a SpringBoot application. This is a Springboot + Spring Integration application that also uses mybatis for jdbc. It seems to load all the property files properly. Any pointers to how to go about figuring this…
2
votes
1 answer

Handling MessageHandlingException with advice and continue the flow spring integration dsl

i am trying to suppress MessageHandlingException generated from http outbound gateway for non 2XX status codes and gracefully return back the control to the parent flow so that message with original payload is given back on the reply channel as…
2
votes
1 answer

Spring integration DSL Scatter-Gather async/parallel execution for multiple recipientFlows

we are trying to make parallel calls to different recipient using scatter-gather and it works fine. But the second recipient flow is not starting unless the first one is complete(traced in Zipkin). is there is a way to make all recipients async..…
2
votes
1 answer

Spring Integration send messages to Executor in transaction

I have a huge number of messages coming from CSV files, that then get sent to a rate limited API. I'm using a Queue Channel backed by a database channel message store to make the messages durable while processing. I want to get as close to the rate…
sMoZely
  • 369
  • 1
  • 10
2
votes
1 answer

How to handle 404 return code (by design) in int-http:outbound-gateway?

I code a Spring Integration route that queries a SOAP and a REST WS and somehow aggregates the results. I use a bean as payload to gather the useful information along the way, two payload enrichers to query the web services and a transformer at the…
1
vote
1 answer

Spring integration: http inbound gateway detect empty body and use 204 code

I have the following HTTP inbound gateway: @Bean public IntegrationFlow httpInbound() { return IntegrationFlows .from(Http.inboundGateway("/").requestMapping(m -> m.methods(HttpMethod.POST))) …
1
vote
1 answer

Ignore specific path in Http.inboundGateway

I'm working on a Spring boot 2.7.7 + Spring integration application that works as a webservice proxy: any URL fed to the webservice is converted to the URL of one of many third-party services following some business rules. The accepted URLs cannot…
1
vote
2 answers

Upload a xml file in spring integration using HttpRequestHandlingMessagingGateway

I am trying to upload a multipart form-data with an attached xml file to integration server. I am using a HttpRequestHandlingMessagingGateway with a RequestMapping bean. @Bean("Inbound_GATEWAY_in") public MessageChannel Inbound_GATEWAY_in() {…
1
vote
1 answer

How to handle ResourceAccessException in resttemplate using Spring integration

Here I'm using Spring integration's http outbound gateway to make a http call. I have also added timeout for the call. I have configured the timeout using restemplate. Here whenever it's taking more time then it's throwing an ResourceAccessException…
1
2 3
9 10