Questions tagged [spring-integration-dsl]

861 questions
0
votes
1 answer

Spring integration - log each message with mdc to able to aggregate the messages

I am using SpringIntegration's IntegrationFlows to define the message flow, and used Jms.messageDrivenChannelAdapter to get the message from the MQ, now I need to parse it, send it to KAFKA and update couchbase. IntegrationFlows …
Developer
  • 239
  • 1
  • 3
  • 17
0
votes
1 answer

In SFTP Transfer a file to one remote folder and need to delete the same file in another remote folder

Using Publish subscribe ,I'm Pushing local file to multiple remote folders (remoteDirectory1,remoteDirectory2(Copy to remote success and archive folder)) at the same time I need to delete the same file in another remoteDirectory3 (ex: delete from…
0
votes
0 answers

Changing default location of local directory before transferring to sftp using sftp outbound gateway

I am using sftp outbound adaptor to transfer files generated in ItemWriter to sftp server successfully. Following is the java dsl config for my sftp outbound gateway. @Bean public IntegrationFlow sftpOutboundFlow() { return…
0
votes
1 answer

Advice on Integration Flow Design

I am planning to implement an integration flow as below: IntegrationFlows.from(httpInboundGateway) .transform(transformer-rest-api-1) .transform(transformer-rest-api-2) .handle(jdbc-outbound) .handle(http-outbound-gateway-1) …
Guru
  • 2,739
  • 1
  • 25
  • 27
0
votes
1 answer

Spring DSL: Use message header in transformer

I have xml like below, in the runtime i want to dynamically process . First time first then etc . . . . . . CASE1: Working code sending static xslt…
0
votes
1 answer

How to handle integration flows that terminated in transit

How do we handle below flow, when it terminates (may be server dies while one of the transformation was in progress)? @Bean public IntegrationFlow sampleFlow() { return IntegrationFlows.from(httpAdapters.pushInbound()) …
Guru
  • 2,739
  • 1
  • 25
  • 27
0
votes
1 answer

Spring DSL handle after flow?

I am trying to configure the following flow: try to acquire a lock when a message arrives on a Rabbit queue, query a remote file server for some files and send a new message to another queue for each file found and release the lock after sending all…
alturkovic
  • 990
  • 8
  • 31
0
votes
1 answer

Handle sequential HTTP calls with the same message

I would like to make two sequential calls one after the other, but using the same request message for both calls. But as shown in my sample code, the response from the first post call becomes the request of the second call by default. What is the…
0
votes
2 answers

How to resolve the handler and the method dynamically from the headers?

My flow is like this private IntegrationFlow myChannel() { return f -> f ... .handle("myHandler", "myMethod") ... } How to resolve the handler myHandler and the method myMethod dynamically from the headers?
Mike
  • 541
  • 1
  • 4
  • 18
0
votes
1 answer

How to set jms header for message that is consumed via spring integration

In order for message to move to undelivered queue in case of maxRelivery attempts, the tibco broker expect to set a jms property JMS_TIBCO_PRESERVE_UNDELIVERED to true. I am not sure how to set this property after the message is…
nagendra
  • 593
  • 1
  • 9
  • 29
0
votes
1 answer

Spring integration Java DSL: How to choose the HttpMethod dynamically with the Http.outboundGateway method

I have different flow methods for the POST, PUT, PATCH, and DELETE, like this private IntegrationFlow myChannelPost() { return f -> f .handle(Http.outboundGateway("url") .uriVariable("url", m ->…
Mike
  • 541
  • 1
  • 4
  • 18
0
votes
1 answer

spring integration sftp channel

In sftp remote - I have 2 folder [ready] and [process] , What I need to do is first I have to move file from ready to process then I move that file to local directory using single channel . Please check my code is this correct ? my code works fine…
0
votes
1 answer

publishSubscribeChannel unit test can't work well

my integration config class is below,when i do some unit test on them,found that: when i send message to UserRecipientSubscribeCacheChannel,it work well; when i send a message to an upper level of channel userReportWriteCompletedRouteChannel, it…
steven
  • 377
  • 3
  • 14
0
votes
0 answers

Spring Enrich header when I create a dynamic connection

I'm using spring-integration-java-dsl-1.2.3.RELEASE spring-integration-ip-4.3.17.RELEASE spring-integration-http-4.3.17.RELEASE Given this code to generate dynamically TCP connections. I define a enricherHeader with a unique header called…
Reyfren
  • 51
  • 1
  • 6
0
votes
1 answer

Spring When routing inputChannel first channel is always wrong

I'm using spring-integration-java-dsl-1.2.3.RELEASE spring-integration-ip-4.3.17.RELEASE spring-integration-http-4.3.17.RELEASE Given this code to generate dynamically TCP connections. I define the ReveiverAdapter and SenderAdapter.…
Reyfren
  • 51
  • 1
  • 6