Questions tagged [spring-integration-http]

136 questions
0
votes
1 answer

calling one rest API from another rest API

It's about using one API's reply channel in another API. I have API 1 which does some operations on the entity and unlocks the entity. & API 2 which unlocks an entity. I have make them work so that they can be called independently. API2 unlocks the…
0
votes
1 answer

http retry advice not retrying when an exception is thrown

I have service activator method which throws database exception, I am catching that exception and sending ResponseEntity to the output channel. I have retry advice configured on the service activator but its doesn't retry(I am assuming its because I…
0
votes
1 answer

calling http rest API from another API

I have API 1 which is defined by int-http:inbound-gateway and has service activator to perform some business logic and sends output on output channel same as reply channel of the inbound gateway(simple flow) I also have API 2 which is defined in…
0
votes
1 answer

Spring integration request slowness on increase in load into application

We have a web application with java8+Springboot+Spring Integration. We are using the DirectChannels for message transfers within our application. There are two inboundadapter to this application a-SOAP web service b- MQ, Also we have outbound…
0
votes
1 answer

Error handling issue with http ResponseEntity using ExpressionEvaluatingRequestHandlerAdvice

Continuation of Error handling - no output-channel or replyChannel header available, I am returning ResponseEntity from the transformer of ExpressionEvaluatingRequestHandlerAdvice failureChannel. when I debug I can see ResponseEntity
0
votes
1 answer

Error handling - no output-channel or replyChannel header available

I am trying to handle exceptions using ExpressionEvaluatingRequestHandlerAdvice, have a transformer for a fail channel,
0
votes
1 answer

Message Headers is Spring Integration flow with subflows

There is below main Spring Integration flow that receives the request through HTTP, handle it using several subflows and then replies to the consumer. The problem is that when the flow enters the first subflow, it loses practically all its…
0
votes
1 answer

Spring Integration rest API flow design

I am beginner in spring integration api development. API requirements are as below, I need to design and develop a http rest api(POST) which accepts some request body and which internally calls 2 external apis and based on those api responses,…
0
votes
1 answer

Use custom webclient in Spring webflux integration

I am building a webclient with custom exchangefilter. This custom exchangefilter use reselience4j for load balancing stuff. I want to add webflux spring integration outbound gateway to send request and receive http response. Is there a way i can…
0
votes
1 answer

How to Read Files and trigger http rest multipart endpoint using Spring Integration

I am following this spring integration example - https://github.com/iainporter/spring-file-poller @Bean public IntegrationFlow writeToFile(@Qualifier("fileWritingMessageHandler") MessageHandler fileWritingMessageHandler) { return…
Kris Swat
  • 788
  • 1
  • 10
  • 39
0
votes
1 answer

How to add timeout while calling SOAP Service from spring integration

While calling soap service from spring integration how to add timeout ? Below is the code where I'm calling a soap service using Ws.marshallingOutboundGateway(). @Bean public IntegrationFlow flow() { return flow -> …
0
votes
1 answer

How to call subflows after aggregate() method in scatter-gather pattern in Spring Integration

Here I'm using scatter gather pattern. If I want to call another IntegrationFlow after aggregate() and before to(), how do I do that? can I use recipientFlow here so that I can make that flow conditional as well? @Bean public…
0
votes
2 answers

How do I apply conditional routing in spring integration?

Here in my project I'm using scatter gather pattern where 3 parallel calls are happening. I want to achieve conditional routing i.e., from my gateway the request will come and I need to see that request and by determining the request I need to make…
0
votes
1 answer

How to catch exception and throw my own exception inside ExpressionEvaluatingRequestHandlerAdvice and handle it through my own exception handler?

I'm using Spring integration and scatter gather pattern in my project. Here I've applied the Rest Template timeout and also I'm using ExpressionEvaluatingRequestHandlerAdvice() to catch timeout exception. But I want to catch that exception in…