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.
How to set camelContext id dynamically in the spring DSL? Consider my scenario like this,
Bundle A : having camelContext where I set id attribute say simple-ctx. This bundle has some other utilities beans which is used in some other bundle.
Bundle B…
I'm currently working on an application which uses Camel heavily. I'll briefly explain what I'm trying to achieve:
An OnException Processor (handled=true) catches an Exception and when that happens I want to stop the Exchange from being processed by…
I'm writing a SI flow using the SI-DSL, so let me start by saying I don;t know if this question is related to the Si-DSL only or to both SI and SI-DSL.
My use case is like this
- getting messages from a Queue
- saving the messages in a database…
So I have some routes on camel spring dsl which behaves and work just as expected. However when I deploy these routes on karaf they behave different, for example
1) I have this condition ${body} == null it evaluates to…
I am trying to process a series of files using Spring Integration in a batch fashion. I have this very old xml which tries to convert the messages into jobs
I have the following configs
@Bean
public IntegrationFlow mainFlow(){
return IntegrationFlows.from("channel1")
.route("condition", p -> p
.subFlowMapping("true", flow -> flow.gateway("channel2"))
…
When using a WSInboundGateway in Spring Integration Java DSL, is there a way to extract a header (its value) and use it for example to populate an Enum?
I've tried this but the SpEL does not evaluate:
@Bean
public IntegrationFlow aFlow() {
…
This is my code snippet
@Bean
@ServiceActivator(inputChannel = "topicChannel", outputChannel="responseChannel")
public Employee getEmpDetails() throws Exception {
Expression query = new LiteralExpression("{'name' : '*****'}");
…
In the current release 1.0.2 of spring integration dsl I can see some of the basic channels are not present like ReST/HTTP, TCP/UDP, JDBC, MQTT, etc.
Just wanted to know whether this protocols/channel are in roadmap or it has been excluded…
I want to set the property named "uriVariablesExpression" as a value of Map type. It will be run as a service activator in a integration flow. And the input channel will have a message that payload has the value of Map type. How can I set the…
I am getting the exception Cannot find any routes with this RouteBuilder reference: RouteBuilderRef[routebuilderOne] when I am trying to wire the route builder based on configuration.
Class file of Route Builder 1
import…
I'm trying to create a simple camel application for transferring files from one folder to another.
I have two questions in mind
1. Is there a way to stop the route once the source folder is empty.
2. Is there a way to signel camel to stop the…
It is possible to implement closure-based config as a map of maps?
grails {
acme {
host = 'localhost'
poolSettings {
timeout = 5000
}
}
}
The above config is convention for a grails plugin. We're doing a migration, and…
An example URI for my rest service is as follows:
http://xx.xx.xxx.xx:8080/myservice/service/encode?encrypt=true&payload=11/11/2013%207:59:15%20AM&ttl=10h
The service route I am using on the node with my service on it is as follows. This works…
The Spring Integration Java DSL Reference and Spring Batch Java Configuration documentation show how to use Java Configuration for Spring Integration and Spring Batch.
But they dont show how to configure it for the Spring Batch Integration. How is…