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
1
vote
1 answer

How to dynamically setting CamelContext ID in Spring DSL?

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…
Ashish Mishra
  • 169
  • 16
1
vote
0 answers

Apache Camel - Prevent Exchange Propagation on Route Policy on Exception

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…
Ivo
  • 450
  • 3
  • 18
1
vote
2 answers

MessageSource as a flow step

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…
amsmota
  • 171
  • 2
  • 11
1
vote
1 answer

Strange Camel behaviour on apache karaf

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…
nullP
  • 31
  • 2
1
vote
1 answer

Convert Message to Job to make it Spring Integration with Batch Processing

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
Harish
  • 3,343
  • 15
  • 54
  • 75
1
vote
0 answers

Returning from a gateway in a subflow using java config when using a replyChannel

I have the following configs @Bean public IntegrationFlow mainFlow(){ return IntegrationFlows.from("channel1") .route("condition", p -> p .subFlowMapping("true", flow -> flow.gateway("channel2")) …
1
vote
1 answer

Spring Integration Java DSL - capture header to use in Enum.valueof()

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() { …
Wivani
  • 2,036
  • 22
  • 28
1
vote
1 answer

MongodbMessageSource in Spring integration is throwing error with no beanFactory

This is my code snippet @Bean @ServiceActivator(inputChannel = "topicChannel", outputChannel="responseChannel") public Employee getEmpDetails() throws Exception { Expression query = new LiteralExpression("{'name' : '*****'}"); …
Eswar Goud
  • 134
  • 1
  • 11
1
vote
1 answer

Spring Integration DSL Channel Support

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…
1
vote
0 answers

How can I set the property value using SpEL in the XML file?

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…
verystrongjoe
  • 3,831
  • 9
  • 35
  • 66
1
vote
2 answers

Getting the exception 'Cannot find any routes with this RouteBuilder reference: RouteBuilderRef[routebuilderOne]'

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…
1
vote
1 answer

Stop camel route(File transfer) once the source folder is empty

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…
kallada
  • 1,829
  • 4
  • 33
  • 64
1
vote
2 answers

How to create ConfigObject using only nested maps in Grails?

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…
raffian
  • 31,267
  • 26
  • 103
  • 174
1
vote
1 answer

URI to Spring DSL How do I pass in REST Get Parameters

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…
pjc
  • 240
  • 5
  • 14
1
vote
2 answers

Spring Batch Integration config using Java DSL

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…
Menno
  • 97
  • 1
  • 7