Questions tagged [spring-integration-http]
136 questions
1
vote
1 answer
How to preauthorize access to a Http.InboundGateway?
I know its possible to add a @PreAuthorize annotation to a Rest Controller...
@RestController
public class WebController {
@PreAuthorize("hasAuthority('Foo')")
@GetMapping("/restricted")
public ResponseEntity restricted() {
…

Kevvvvyp
- 1,704
- 2
- 18
- 38
1
vote
1 answer
How to get custom header values in spring integration gateway?
This is my first question here.
My web application is using spring integration for getting 3rd party APIs response.
The response has custom header values start with 'X-'.
The X-Values are two. (X-AccessToken-Quota-Allotted,…

fat-takumi
- 71
- 11
1
vote
1 answer
Spring Integration Gateway with void method return type: why doesn't it set a NullChannel replyChannel automatically?
I have an integration flow like this, using Spring Integration 4.3.x:
=> => => => return to the gateway
The gateway is defined by an interface with multiple methods, some…

Mauro Molinari
- 1,246
- 2
- 14
- 24
1
vote
1 answer
Spring integration : Failed to send message to channel 'executionFilterChannel' within timeout: -1
Getting below error when i tried to use channel message store :-
org.springframework.messaging.MessageDeliveryException: Failed to send message to channel 'executionFilterChannel' within timeout: -1

Smith
- 151
- 3
- 11
1
vote
1 answer
Unable to set Reply Channel to Message Header in Spring Integration
There is definitely something I must be missing so seeking help here.
I am building a simple REST application using Spring Integration with the following HTTP inbound gateway:

bmylavar
- 61
- 1
- 12
1
vote
0 answers
Spring Integration - send form parameters of type "application/x-www-form-urlencoded" using http-outbound gateway (POST)
Technologies I am using
Spring Boot 2.x,
Spring Integration 5.x.
I am trying to send form parameters using http-outbound gateway (POST).
My spring-integration file looks like

prudhvin000
- 11
- 2
1
vote
1 answer
How to use the RedeliveryPolicy in case of failed messages for outbound->inbound->httpgateway(messages failing here)->EXTERNAL SERVICE
How to use the RedeliveryPolicy in case of failed messages in outbound->inbound->httpoutboundgateway(messages failing here)->external service
the failed messages are not getting retried based on the RedeliveryPolicy mainly because the message is…

rowen
- 37
- 5
1
vote
1 answer
How can I expose the "Content-Disposition" in spring-integration (DSL)?
For downloading a file I will add the "Content-Disposition" to my responseHeader but it doesn't work.
The response will not have any added properties.
@Bean
public ExpressionParser fileParser() {
return new SpelExpressionParser();
…

Ryan Wegmeier
- 71
- 8
1
vote
1 answer
Spring Integration fetch paginated results from a REST service
I'm working on an integration with a REST service, the idea is that it's polled by an outbound gateway marketingCategoryOutboundGateway implemented by HttpRequestExecutingMessageHandler. The gateway makes a request to the REST service and pushes its…

super.t
- 2,526
- 7
- 32
- 51
1
vote
1 answer
EnpointSpec fails in Spring Integration Java DSL
@SpringBootApplication
@EnableIntegration
public class SpringIntegrationHttpApplication {
public static void main(String[] args) {
SpringApplication.run(SpringIntegrationHttpApplication.class, args);
}
@Bean
public…

Guru
- 2,739
- 1
- 25
- 27
1
vote
1 answer
Keep original Request POJO after HTTP Outbound gateway
I am setting a workflow using Spring integration. Basically is this:
Poll Database → Split rows → HTTP Post to web API → Filter: (if OK) → Write To File → Delete row from DDBB
I am using a JDBC poller and an HTTP outbound gateway. I've managed to…

JavyDev
- 15
- 3
1
vote
1 answer
Spring Integration http-inbound-gateway / RequestMappingHandlerMapping
I am new to Spring Integration. I am trying to build a simple application using http-inbound-gateway.
Below is the Runtime exception i am getting.
java.lang.AbstractMethodError: Receiver class…

Sam
- 181
- 2
- 4
- 17
1
vote
1 answer
Download a file using http with Spring Integration
Making the plunge into Java from .NET for a long time.
I am looking for is an example on how to periodically download a file, read the text from it and then take some action based on the read using Springs Integration library and the annotation…

JDBennett
- 1,323
- 17
- 45
1
vote
1 answer
Http inboundGateway caching jpa result
how to cache Jpa result from handler? I tried searching some similar scenarios but I cannot find how to do it in DSL. below is my sample code..
@Bean
public IntegrationFlow findProducts() {
return IntegrationFlows
…

Lp. Don
- 105
- 1
- 7
1
vote
1 answer
multipart request not working as expected for spring integration
I have two rest services and a Listener
Service A
Service B
Listener L1
Step 1 - Listener L1 reads a file from local and send the multivalue
map to service A. Service A retrieve some document from database and
returns it as bytes to Listener…

Kaiizok
- 90
- 10