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
0
votes
1 answer

Defining a non null map variable in Apache Camel routes

I've a situation where I want to define a non null Map variable in Camel route and put value into it. But I couldn't find a way to do that. I tried defining a map by setting resultType as "java.util.HashMap" in setProperty field.But I got…
0
votes
1 answer

Spring Integration: start new transaction in my Message flow IntegrationFlowBuilder to commit change and resume the outer transaction

My jdbcSourceMessage execute a select for update with batch of 100 rows at a time. While the integrationFlow is been executed in a Transaction to hold a lock to the database for the fetched batch. I would like to start new Transaction for my…
0
votes
1 answer

How to set errorChannel when i user a taskExecutor of publishSubscribeChannel?

I used publishSubscribeChannel and add a taskExecutor to implement async. Below is the code. @Bean public IntegrationFlow mainFlow(){ return IntegrationFlows.from("mainFlow") .. …
chris
  • 51
  • 1
  • 5
0
votes
0 answers

Camel - HTTP request content based redirecting

I 'm trying to use camel for redirecting an http request based on the contents of the request body. I 've created an endpoint for receiving http requests and I 'm able to successfully redirect my request to a different URL, using the following…
Amal
  • 75
  • 1
  • 9
0
votes
2 answers

Excpetion while configuring camel jmx in jboss

I am deploying came jmxAgent in Jboss 6.3.0. Follwing is the code snippet:
0
votes
0 answers

Rest DSL path typing to a POJO, can I register the POJO as a Bean and call the id to reference it?

This is a very low impact "issue" and I'm just looking out to learn something new about Camel and how it works. I'm working to build a springboot service using camel context routes, and while it's working fine (so far), I'd like to set the rest path…
danks
  • 103
  • 1
  • 10
0
votes
3 answers

https4 apache camel gives Host name does not match the certificate subject provided by the peer

i am trying to set up a https connection with apache camel in Spring DSL. following this tutorial: https://access.redhat.com/documentation/en-us/red_hat_jboss_fuse/6.2/html/apache_camel_component_reference/IDU-HTTP4 and also:…
K.Til
  • 13
  • 7
0
votes
1 answer

Spring DSL: Use message header in transformer

I have xml like below, in the runtime i want to dynamically process . First time first then etc . . . . . . CASE1: Working code sending static xslt…
0
votes
0 answers

Camel - Best practice to start an asynchronous route from another (in request only)

In a Camel route I have to start (in async mode and request only) another route countinuing the processing in the main route. For example: I receive a request, I start in async mode another ruote to write the request on file system (and I'm not…
GSX
  • 63
  • 7
0
votes
2 answers

Error accessing env properties with Camel in JBoss Fuse 6.3 on JBoss EAP 6.4

I'm working with Apache Camel and JBoss Fuse 6.3 on JBoss EAP 6.4. I'd like to access environment properties via Spring DSL (like for example the JBoss Fuse home location) but I'm getting an error: with the following code
GSX
  • 63
  • 7
0
votes
1 answer

Xpath to find the root of the XML using Spring DSL

I am using Spring DSL, to access webserver, like this,
Prakash
  • 630
  • 3
  • 10
  • 20
0
votes
2 answers

How to use Spring Integration to setup a ThreadPool to process a file message source?

Could somebody help me rewrite this flow using a thread pool ? The below code works, but uses a fixed delay to service incoming files: @Bean public IntegrationFlow sampleFlow() { return IntegrationFlows …
0
votes
1 answer

Spring boot integration mail - authorization failed error

Following is my spring configuration bean for pop3 connection, @Bean public IntegrationFlow mailListener() { return IntegrationFlows.from(Mail.pop3InboundAdapter("pop3://sample.test:Sample2test_1@xxx.xx.x.xx/INBOX") …
Sharan De Silva
  • 598
  • 1
  • 8
  • 27
0
votes
1 answer

How to set a Camel property as a List or Array in Spring XML

I am developing a simple processor to verify the existence of mandatory properties in a route. I need to add that list on the route definition before calling the processor.
João Gomes
  • 332
  • 4
  • 15
0
votes
1 answer

how to iterate through an arraylist inside apache camel route , xml?

I want to iterate through a java arraylist passed as message header to a camel route via bean so that each string item which is basically an url can be passed as uri argument inside tag in camel route. I am passing an array list as message header…
Aniket Garg
  • 3
  • 1
  • 3