Questions tagged [spring-integration-dsl]

861 questions
3
votes
1 answer

How to unit test a Consumer

I have the following definition in my code based on Spring Integration enrichHeader with randomUUID: @Bean public Consumer uriHeaderEnricher() { return new Consumer() { private final String…
2
votes
1 answer

How to use the @RetryableTopic in Spring Integration

I'm wondering how to use the spring-kafka annotation @RetryableTopic within an integration flow. Is there any way to apply it onto a consumer introduced by Kafka.messageDrivenChannelAdapter() ?
2
votes
1 answer

How to create custom error response in Spring Integration using java DSL

I have following simple proxy integration flow. The main task of which is to take request from the proxy send it to the actual endpoint, get the respond and send it back to the client. @SpringBootApplication @EnableIntegration public class…
Frank
  • 178
  • 1
  • 12
2
votes
1 answer

Use of ConsumerEndpointSpec.transactional() in Spring Integration DSL

I have a question about the behavior of transactional() in the following example: @Bean IntegrationFlow myFlow( EntityManagerFactory entityManagerFactory, TransactionManager transactionManager ) { return…
Chris
  • 4,212
  • 5
  • 37
  • 52
2
votes
1 answer

FTP outbound gateway delegating session factory performance

What my system does is periodically read a directory from multiple remote ftp servers, and copy the files into a local server. The method I use is the Integration DSL FTP outbound gateway, with DelegatingSessionFactory to listen to multiple remote…
2
votes
1 answer

Validator Spring integration

I'm trying to validate an incoming xml data in spring integration. I have used the Validator and implemented it's methods. But when I'm running the application i'm getting that the class is not supported. this is my code in the validator…
2
votes
1 answer

How to calculate checksum/digest of a transferred file in spring-integration

How/where can I compute md5 digest for a file I need to transfer to a samba location in spring-integration in order to validate it against the digest I receive at the beginning of the flow. I get the file from a rest service and I have to make sure…
MS13
  • 327
  • 5
  • 16
2
votes
1 answer

Run multiple Spring Integration Flows in parallel

I have application that polls multiple directories and than it sends job requests to Sring Batch, every directory is registered as different Flow. Is it possible to run this in parallel? I have this use case, because every directory is connected to…
2
votes
1 answer

Is it possible to set Redis key expiration time when using Spring Integration RedisMessageStore

Dears, I'd like to auto-expire Redis keys when using org.springframework.integration.redis.store.RedisMessageStore class in Spring Integration. I see some methods related to "expiry callback" but I could not find any documentation or examples yet.…
2
votes
1 answer

Dynamic Integration flow Registration causing performance degradation

For example, we have a sample flow which has 20 different beans and we are registering them dynamically using IntegrationFlowRegistrationBuilder#register() method. Registration time is degrading once we register at least 200 flows of same type…
pjsagar
  • 241
  • 3
  • 11
2
votes
1 answer

Spring Integration DSL: How can I set the logging.level to DEBUG for .log()

How can I change the logging.level to a level below INFO for the .log() entries ? By default, it seems to log only INFO and above. I'm unable to get it to log DEBUG and TRACE. I have tried (in application.yml): logging.level: …
Chris
  • 4,212
  • 5
  • 37
  • 52
2
votes
1 answer

Spring-Integration-DSL: Nested Scatter Gather hangs

Here is a broken, but executable example code: @Bean IntegrationFlow testFlow() { return IntegrationFlows .from(Http.inboundChannelAdapter("test") .requestMapping(mapping -> mapping.methods(HttpMethod.GET)) …
Chris
  • 4,212
  • 5
  • 37
  • 52
2
votes
1 answer

How to add a Spring Boot HealthIndicator to an Imap receiver IntegrationFlow

How do you integrate a Spring Boot HealthIndicator with an IntegrationFlow polling email with imap? I can get exceptions from the IntegrationFlow via the errorChannel but how do I "clear" the exception once the IntegrationFlow starts working again,…
2
votes
1 answer

Spring integration: failure of conversion of gateway error to message

I want my service gateway to return any error in its immediate flow (up to the nearest async channel) to service caller as a valid message (not exception), in sync fashion. Entire flow is on a single thread. My minimal example refuses to work as…
Victor Sorokin
  • 11,878
  • 2
  • 35
  • 51
2
votes
2 answers

Is it possible to configure poller for each entity from a data source?

I'm developing a multi property micro service by spring integration. I'm getting each property's login credentials from database like LOGIN table. LOGIN table has these fields; LOGIN.username, LOGIN.pass and LOGIN.period(poller's period). If I want…
ytWho
  • 195
  • 8