Questions tagged [camel-spring-dsl]

13 questions
2
votes
1 answer

How to prepare an Executor service for Apache Camel route's Split, org.apache.camel.spi.ThreadPoolProfile vs java.util.concurrent.ExecutorService

In the multithreading guide of Apache Camel there is an example on ThreadPoolProfile usage as a parameter for executorServiceRef (https://camel.apache.org/manual/threading-model.html):
Eljah
  • 4,188
  • 4
  • 41
  • 85
1
vote
1 answer

How to escape regex in Java methods call in simple language in Apache's Camel Spring DSL (XML) route?

I have a setHeader tag in my route: ${header.timestampPart2.split("\\.")[0]} I expect, it will split the String inside the timestampPart2…
Eljah
  • 4,188
  • 4
  • 41
  • 85
0
votes
1 answer

Camel and LRA Saga: when the compensation action is executed?

I would use the Camel SAGA component available at https://camel.apache.org/components/3.20.x/eips/saga-eip.html I can easily understand that a "compensation action" is executed when the respective SAGA action fails, but it's not clear what is the…
0
votes
0 answers

Circular error-handler detected at route: {} - breaking out processing Exchange: {}

I am having multiple camel routes written in Java DSL exceptions are handled using OnException. Below are my requirements. Fetch token from cache and make http call If http call fails with invalid token then make a back end call to get new token…
Lokesh
  • 1
  • 1
0
votes
0 answers

Camel CamelCreatedTimestamp exchange property

I am looking at some older Camel code where there are references to an Exchange property called CamelCreatedTimestamp. I believe I read a post that indicated that this property is no longer available as an Exchange property. I've searched everywhere…
R M
  • 133
  • 10
0
votes
2 answers

How to check an Apache Camel SQL component resultset (select) is empty?

I'm running a Camel route that reads a flag record from database. If flag is NOT there then insert it and perform some additional stuff. I expect being able to check if resultset from query is empty or not but conditions I use on route (choice) seem…
Dandev
  • 115
  • 1
  • 8
0
votes
0 answers

Camel Debugger is not found in classpath. Please add camel-debug or camel-debug-starter JAR to your project dependencies

I am using Apache Camel with Springboot org.springframework.boot spring-boot-starter-parent 2.6.3 // Apache Camel
Amit Singh Kaira
  • 119
  • 1
  • 12
0
votes
1 answer

In Apache Camel with Spring Boot, how to Join many external callbacks (using "from().to()") into a single response?

SOLVED! Scroll down to Solution. I have entity Person with some basic data on table A and more specific data on tables B, C, D, etc (address, for example). PersonResponseDTO (summarized): { "id": 1, "name": "Test" } AddressResponseDTO…
Rasshu
  • 1,764
  • 6
  • 22
  • 53
0
votes
1 answer

How to skip/mock the wireTap in camel route for junit test cases?

I have to write junit test cases for camel routes by skipping the wireTap. Or is there possibility to mock the wireTap? If yes then how ? Thanks, Sreekanth
0
votes
1 answer

Load CSV to database using Apache Camel Spring XML (CSV to SQL components)

I want to do a simple file polling that takes in a CSV file, unmarshals it and loads specific fields into database. I guess that should be a pretty common scenario but I need to use Spring XML instead of creating a java processor. To my surprise I…
Dandev
  • 115
  • 1
  • 8
0
votes
1 answer

What's the correct class to run Apache Camel 3.14.0 from command line?

I set the following pom.xml to use Camel 3.14.0:
Dandev
  • 115
  • 1
  • 8
0
votes
1 answer

Why header value isn't inserted into Apache Camel's `to` url parameter of the route in Spring DSL?

We have a route that will accept the kafka.KEY and use that as mqtt url parameter to send the data to the right topic.
Eljah
  • 4,188
  • 4
  • 41
  • 85
-1
votes
2 answers

Is it possible to call the header value as a parameter for the method applied to the same object in simple interpreter, Spring DSL for Apache Camel?

Is it possible to call something like this in Apache Camel's Spring DSL ${header.timestampPart2.substring(0, ${header.timestampPart2.length()} - 2)} or like this
Eljah
  • 4,188
  • 4
  • 41
  • 85