Questions tagged [spring-integration-http]
136 questions
0
votes
1 answer
How to send error message once a http call takes more time than is required in Spring integration dsl?
Here I've three subflows and out of which one is HTTP outbound call. I want that HTTP call should try to get response till a mentioned time. If times out then the main flow should break and it should show a Error message in Json format as…

Somnath Mukherjee
- 95
- 1
- 8
0
votes
1 answer
How to handle http response exception and continue the flow till aggregate in Spring integration
I'm using Spring-integration in my project and the pattern used is scatter-gather. Here three parallel processes are being carried out. The flow2 is a outbound gateway method and if that service is down then I want to handle the Httpstatus exception…

Somnath Mukherjee
- 95
- 1
- 8
0
votes
1 answer
How do I call a validator method to validate the input that's coming through gateway before passing to the parallel flows in scatterer?
I'm using Spring-integration in my project and the pattern used is scatter-gather. Here three parallel processes are being carried out. Before any of the parallel process starts I want to call a method which returns nothing but that will validate…

Somnath Mukherjee
- 95
- 1
- 8
0
votes
1 answer
How to pass multiple parameters to the Gateway and use that inside subflows in Spring Integration
Here I'm using Scatter-gather pattern using spring integration and calling 3 sub-flows parallelly. this same parallel process needs to be run for other requirements because the whole process is similar for the other few requirements it's just that…

Somnath Mukherjee
- 95
- 1
- 8
0
votes
1 answer
How to add configurable timeout in spring integration
I'm using Spring-integration java dsl in my project and I want to add configurable timeout for the parallel services that are being called. I should be able to add different timeout for thr different flows that I'm using here. Kindly help me with…

Somnath Mukherjee
- 95
- 1
- 8
0
votes
1 answer
Call spring-integration transformer method
I have a SpringBoot 2.2.6 webapp and the customer ask me to use spring-integration-http for the endpoint.
Now, my goal is to be able to profiling @Transformers.
For example if I design an interface like follow:
public interface CommonTransformer {
…

CoderJammer
- 599
- 3
- 8
- 27
0
votes
1 answer
How to make gatherer to receive only some specific flow's response, instead of waiting for all the flows and then gather the response in S Integration
Here I'm using Scatter-gather pattern and calling 3 sub-flows parallelly. One of the flow (DBFlow) is taking lot's of time so gatherer is waiting for so long. I want the DB flow to happen but as that is a independent task so I don't want response…

Somnath Mukherjee
- 95
- 1
- 8
0
votes
1 answer
Calling a SOAP Web service using spring integration dsl
I need to call a SOAP Webservice from my REST service. I'm using Spring integration in my project. Currently I'm using xml based configuration to achieve the target. But I want to write code in java dsl. Kindly help me how to call a SOAP service…

Somnath Mukherjee
- 95
- 1
- 8
0
votes
0 answers
The @MessagingGateway annotated interface is not getting registered as bean to spring IOC
I'm using Spring integration scatter-gather pattern, the configuration is being done by using java dsl. I've a Gateway interface which is annotated with @MessagingGateway and has a method which is annotated as @Gateway. When I'm trying to fire this…

Somnath Mukherjee
- 95
- 1
- 8
0
votes
1 answer
I'm not able to print the incoming payload from the replychannel
I'm making a scatter-gather flow here. In the end of the flow I want to printout the message from the reply channel to the console. Here I've 3 API calls out of which 2 are GET calls and 1 is POST call(POST call is doing some database operation).…

Somnath Mukherjee
- 95
- 1
- 8
0
votes
1 answer
spring integration http inbound gateway parameters
I have a SpringBoot 2.2.6 application and I would like to set an endpoint with spring-integration therefore I have the follow configuration:
@Bean
public MessageChannel reply() {
return new DirectChannel();
}
@Bean
public IntegrationFlow…

CoderJammer
- 599
- 3
- 8
- 27
0
votes
1 answer
Best way to get Remote IP in Http Inbound Spring Integration
How can I get remote IP in spring integration (Http Inbound ).
I have searched through stack overflow , I could not relate answers to what I want to achieve.
@Bean
public IntegrationFlow inquiry(IntegrationFlow outboundGateway){
…

Aron Mosha
- 23
- 4
0
votes
1 answer
Spring Integration Unmarshalling
I am trying to unmarshal java objects to xml in Spring integration using UnmarshallingTransformer but I am getting an error that the payload is not created.
This is my code :
@Bean
public Marshaller jaxbMarshaller() {
Jaxb2Marshaller…

Bash
- 101
- 11
0
votes
1 answer
How to pass multiple dynamic headers and a request body to make a rest call in spring integration
MyGateway(defined in service-interface) is a Interface will contain one request body(JsonFormat) which I will be passing it in http-outbound-gateway for rest call

Ashutosh Sharma
- 1
- 1
0
votes
1 answer
Surfacing errors of Http.outboundGateway() when used as part of a enricher subflow
I've got a scenario that was caused by misconfiguration of a URL
@Bean
ExpressionEvaluatingRequestHandlerAdvice notFoundAdvice() {
final ExpressionEvaluatingRequestHandlerAdvice advice =
new ExpressionEvaluatingRequestHandlerAdvice();
…

Dave G
- 9,639
- 36
- 41