Questions tagged [spring-camel]

Spring wrapper over Apache Camel

more details here

586 questions
1
vote
1 answer

How to add a custom MDCUnitOfWork in CamelContext in Camel 3.4.2

How to add a custom MDCUnitOfWork in CamelContext in Camel 3.4.2. Earlier I could add using camelContext.setUnitOfWorkFactory(..) but now, I'm not seeing that method. Thanks.
John Doe
  • 143
  • 2
  • 13
1
vote
0 answers

How to save information to LevelDB and then process this information in another route?

I want to save information being processed to a level DB, right now what I have is from(sourceUri) .transacted() .unmarshal().json(JsonLibrary.Jackson, HashMap::class.java) …
has400
  • 49
  • 1
  • 9
1
vote
1 answer

Camel Spring Boot with External Scheduler

We need to use a third party scheduler with Camel Spring Boot. We can build the Spring Boot Jar and give the command to the external scheduler to invoke: java -jar app-name.jar The issue is that, we will never know when to return the control back to…
SRaj
  • 1,168
  • 1
  • 14
  • 36
1
vote
1 answer

camel mbean management objects doesn't appear by default

I use camel 3.3.0 with spring boot 2.3.1. Considering documentation camel mbeans management objects for camel routes should be appeared by default, but it doesn't happen. I have tried to add to application.properties all properties with jmx, but it…
typik89
  • 907
  • 1
  • 10
  • 23
1
vote
1 answer

Exception not getting handled by onException(Throwable.class) after enabling bridgeErrorHandler on SEDA

I have following route onException(Throwable.class) .handled(true) .process(...) --- (A1) Have a shutdown code here. .rollback(); from("file:D/data/input?fileName=in.txt") .transacted("required") ---…
Raju Parashar
  • 312
  • 4
  • 17
1
vote
1 answer

Registering listeners of an Apache Camel Processor

I try to push data processed in an Apache Camel processor to a listener class. In the processor class instance I try to register the listener during instantiation of the Camel context, which somehow fails. Maybe I am fundamentally wrong here and…
WolfiG
  • 1,059
  • 14
  • 31
1
vote
1 answer

Apache Camel - moving file with uri from yaml properties

I'm trying to process a file using Apache Camel, and after processing move it to a specific folder, while keeping the filename and directory structure. What I have in a application.yml file: camel-from:…
1
vote
1 answer

Camel : Invoke one route from another and get back response synchronously

I have two route A and B as below from("some endpoint") //route A .to("direct:x") from("direct:x") //route B .doTry() .bean("somebean") //set Custom object PQR as message body .doCatch() .bean("some other bean") //log…
Abhishek Chatterjee
  • 1,962
  • 2
  • 23
  • 31
1
vote
2 answers

Camel 3.x: Disable automatic registration of routes

I have been trying to migrate from Camel 2.x to 3.x and having some issues with Spring Boot integration. With Camel 2.x, i managed to disable auto injection of RouteBuilder instances annotated with @Component but have the other benefits,…
osmanates
  • 23
  • 1
  • 5
1
vote
1 answer

camel-metrics in Spring Boot 2 - my metrics are not visible in MBeans via JConsole

I have a project based on RedHat's fuse-springboot-bom that will be depolyed on OpenShift: org.jboss.redhat-fuse fuse-springboot-bom
Ellrohir
  • 1,017
  • 1
  • 14
  • 32
1
vote
1 answer

Async Nonblocking Multicast with Camel

I have two query : 1. Can we have non blocking async routes in camel. I do see async with seda but then if offloads work to other thread that blocks. 2. If so can we use multicast in such routes. Following is my multistep camel route which seems…
Vishal Kumar
  • 762
  • 1
  • 7
  • 15
1
vote
2 answers

Camel route specific onException not triggered

below is the code: SpecificException
Munni
  • 79
  • 1
  • 7
1
vote
1 answer

Not able to retry Camel Route continuously in case of specific exception

I am very new to Apache camel, I have a situation where I need to perform below action Whenever I receive specific type of Exception, I need to retry the complete route again, But I am facing problem of circular-error handling exception and infinite…
Hargun Suri
  • 171
  • 1
  • 5
  • 17
1
vote
1 answer

Is there a way to set rest configuration headers from property file values?

Here I'm trying to access the global property from properties file and set it in enableCORS header in rest configuration like
Tarun
  • 61
  • 6
1
vote
1 answer

How to prevent Camel splitter from aggregating after processing?

I have a camel route set up in the following way: List routes = getRouteInfo(); //I crete the routes using the info in the list. for ( SomeRouteInfo info : routes ){ RouteDefinition routeDef = from(info.from()); routeDef …
Debabrata Roy
  • 177
  • 2
  • 17