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.
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>…
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…
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…
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…
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.
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…
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() //…
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…
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.…
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"
…
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…
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…