Questions tagged [spring-dsl]

Questions regarding the usage of the Spring Integration Java DSL (Domain Specific Language) extension

The Spring Integration JavaConfig and DSL extension provides a set of convenient Builders and a fluent API to configure Spring Integration message flows from Spring @Configuration classes.

See:

145 questions
2
votes
0 answers

How to handle subflow in spring integration dsl

I am trying to handle multiple subflows in my application. Kindly see below example: @Component @DependsOn(value = { "flowUpperCase" }) public class SampleHttpFlowTest extends IntegrationFlowAdapter { protected IntegrationFlowDefinition
javatech
  • 33
  • 3
2
votes
1 answer

Spring integration DSL lastTime not updating on error

I'm totally new at Spring integration DSL stuff, what I'm trying to do is fetch all the RSS feeds from mongo, register them all into the flow context and have that process all the articles fetched from the feeds. Currently I have a for-each loop…
2
votes
1 answer

Mutual TLS on apache camel

In Camel's examples doesn’t have any example or documentation for mutual TLS. How to setup the mutual tls setup in both java dsl and spring dsl ?
2
votes
2 answers

How can I iterate over a nested list inside Camel body?

I am trying to access data in the incoming {body} of my incoming Json I have done the unmarshaling with Jackson and mapped it to a Java Map Class with `.unmarshal().json(JsonLibrary.Jackson, java.util.Map.class) ` My incoming Json data is…
Tabber
  • 151
  • 3
  • 16
2
votes
1 answer

Return a remote PDF as application/pdf in Camel

I need to return a remote PDF file as application/pdf. In a classic WAR, I'd build a servlet that retrieves the remote PDF as InputStream and returns the same PDF as OutputStream, is possible to do so in Apache Camel? What is the best practice? I…
GSX
  • 63
  • 7
2
votes
1 answer

int:gateway equivalent Java DSL

What is the Java DSL equivalent for int:gateway which has error channel and a default request channel. The default request channel is input to a transformer which sends JMS message to outbound adaptor and returns a listenable future.
Nandha0903
  • 35
  • 5
2
votes
1 answer
2
votes
1 answer

Spring Integration DSL adding mid flow transaction

I want to make specific part of flow as transactional. For instance, I want to make the first two transform operation in one transactional block. Here is the flow code that I use: @Bean public IntegrationFlow createNumberRange() { return…
2
votes
2 answers

Grails 2.4.2 bean spring bean injection

Sample app located here : https://github.com/rushidesai1/Grails2_4_2_BeanIssue Question: In resources.groovy if we declare a bean like this beans = { testObject(TestObject){bean -> bean.scope = "prototype" map = new HashMap() //…
2
votes
1 answer

Spring Integration Suppressing Exceptions while splitting over iterator

Take for instance the following scenario: I split a message over an Iterator. If an exception is thrown inside a .handle() while iterating over an element, all the remaining elements are skipped and the next message is obtained. I need to suppress…
2
votes
2 answers

Spring Integration DSL JDBC inbound channel adapter

I use spring integration to read data from database. Now i use polling adapter @Bean public MessageSource jdbcMessageSource() { JdbcPollingChannelAdapter a = new JdbcPollingChannelAdapter(dataSource(), "SELECT id, clientName FROM…
Lukaszaq
  • 181
  • 1
  • 4
  • 16
2
votes
1 answer

ConcurrentModificationException while using Spring Integration DSL Mail

I am trying to use Spring Integration Java DSL for recieving email (gmail). I am also using Redis. When I recieve mail I get ConcurrentModificationException . While searching I also found that people are getting the same error in Kafka as well.…
2
votes
1 answer

Why doesn't integration flow subscribe to the from channel?

To me, this appears to be just about the simplest possible spring integration example. I'm trying to learn from the si4demo. But when I run it, I get this exception: Exception in thread "main" …
djeikyb
  • 4,470
  • 3
  • 35
  • 42
2
votes
1 answer

Spring Integration | DSL

I am trying to send a file to Remote SFTP server. I have created a factory and an outboundFlow for the same. UploaderSftpConnectionFactoryBuilder @Configuration public class UploaderSftpConnectionFactoryBuilder…
2
votes
1 answer

Spring App Error: EL1008E

I have been working on a Spring Integration project using Enterprise Integration Patterns to consume MQ messages, do some processing, then write them to another queue. My problem appears very similar to this one however the accepted answer hasn't…
DaniloV
  • 25
  • 1
  • 1
  • 6
1
2
3
9 10