Questions tagged [spring-integration-dsl]

861 questions
0
votes
1 answer

how to "group by" messages based on a header value

I'm trying to create a file zip based on on the file extension which follows this standard: filename.{NUMBER}, what I'm doing is reading a folder, grouping by .{number} and then creating a unique file .zip with that .num at the end, for…
0
votes
1 answer

Improve performance of the message processing with spring integration dsl

I am using spring integration dsl to receive a message from Kafka and then parse, enrich, and persist in Oracle, Couchbase and publish it to another Kafka topic for downline channels. Persist and Publish needs to be in a transaction so that all the…
Developer
  • 239
  • 1
  • 3
  • 17
0
votes
1 answer

Messages cannot be routed to the error channel defined in header if an exception occurred in handler

Two IntegrationFlows are defined as follows: @Bean public IntegrationFlow myFlow() { return IntegrationFlows.from("input.channel") .handle("myService", "handle") .get(); } @Bean public IntegrationFlow exceptionFlow() { …
0
votes
1 answer

Cannot receive messages from the output channel if using mock handler in IntegrationFlow when testing

For testing the following IntegrationFlow: IntegrationFlows.from("channel.input") .enrich(m -> m.header(MessageHeaders.ERROR_CHANNEL, "channel.input.error")) .handle("handler", "handle") …
0
votes
1 answer

How to consume all messages from channel with Spring Integration Java DSL?

I'm trying to define a flow for a single-threaded handler. Messages come in great number and the handler is slow (it's inefficient to process them one by one). So I want to make the handler consume all messages available in the channel at once (or…
Lewik
  • 649
  • 1
  • 6
  • 19
0
votes
0 answers

Spring cloud stream cannot pass comma separated properties during deployment

I am trying to migrate scdf version from 1.7.3 to 2.1.2 While deploying a stream with the older version, I was able to provide named input destination during stream deployment (using Dashboard UI) as…
0
votes
1 answer

Spring integration enrich with split

Suppose i have a product and i need to enrich this product with downloaded image id's. As an input message i have java pojo. For simplicity present it as a json : { "id" : "productId", "price" : 10000, "productPhotos" : ["http://url1",…
slisnychyi
  • 1,832
  • 3
  • 25
  • 32
0
votes
3 answers

Spring Integration on how to combine both paths for mutiple variables

I am trying to figure out how to bring in multiple pathvariables for the .payLoadExpression but havent figures out a way to do that. Do i also have to do something for the .uriVariable? This works with just one .payloadExpression @Bean public…
0
votes
2 answers

Spring Integration JdbcMessageStore casting error

I am trying to create service that will read some data from remote server and process them using Spring Integration. I have class that extends ArrayList, because I need to keep pointer to other page, so I can read it in next remote call. I set up…
Boris
  • 726
  • 1
  • 10
  • 22
0
votes
1 answer

Spring integration service activator use bean name based on input

I am using spring integration dsl to create a pipeline to enrich and persist the event from kafka to DB. There can be multiple event types and we have create an event interface and corresponding implementation classes. Event interface has method…
Developer
  • 239
  • 1
  • 3
  • 17
0
votes
1 answer

How to send HTTP-Request from my IntegrationFlow?

I receive a Request from the Client which returns a SendRequest-Object that has a HttpMethod, a path and data to send. Now I would like to send the Request depending on the object I get to the API. After sending I will get a Response. The problem…
0
votes
1 answer

spring integration dsl error handling and continue

In my spring integration application I have Async gateway method that does errorChannel specified. On Error - I want to handle the error (which I am able to do successfully) by registering an Integration Flow to the errorChannel. Once the error is…
basu76
  • 441
  • 10
  • 19
0
votes
1 answer

Spring Integration 5.1 - integration flow test - dsl

I have set up a simple Spring Integration flow which is composed of such steps: poll a rest api periodically then do some processing on the payload and land it on a Kafka topic. Please observe the code below: @Component public class…
0
votes
1 answer

spring integration - orchestrating series of rest calls

I have an use case which needs needs to do the following: On receipt of a request make service call A, B, C, D and then send the response Between each of the service calls, log before and after the call B & C can be called after A, but D has to be…
basu76
  • 441
  • 10
  • 19
0
votes
0 answers

Logging interceptor in spring IP integration in Java DSL

I am integrating with one of the external vendor with spring-ip integration. I would like intercept the messages (much like web filters) to print to log file them before and after the transformation for logging and debugging purpose. As the message…