I have a route with doTry() - doCatch() pair for a specific route and onException() in general.
onException(Exception.class)
.handled(true)
.log(LoggingLevel.ERROR, "An error occurred: ${exception.stacktrace}")
…
I am migrating an application to use the latest version of Spring Boot.
Currently all the camel routes are in XML and I have it running using this approach.
All the routes currently log a message at the end of processing.
I was wondering is there a…
How do I stop a camel route when there is an exception. My dynamic route is consuming jms and sending to reactive endpoint.
camelContext.addRoutes(New GenerateRoute());
Route generator class is as below:
public class GenerateRoute extends…
Getting this error when loading rest definitions via "xml-rests" to Camel Spring Boot 3.2 with the XML path defined in the property camel.springboot.xml-rests = classpath:folder-camel/folder-rest/*.xml
My rest definition file looks as…
I have couple of routes (route 1 and route 2) in my Spring Boot application. I have been researching how to gracefully shutdown the application after processing both the routes. I have referred the documentation…
I have a JSON File with key value pairs and I want to put the key value pairs into headers.
So when I have a file with content like this:
[{"msgId": "8600C5A3-C666-4E63-BFDB-52BCF557F938", "jiraId": "ERR002"}]
I want to create headers with the name…
I have a springboot application with apache camel. In it I have a camel-context.
I am trying to send json through curl with a key pair value and processing it through a route.
Sending the data:
curl --header "Content-Type: application/json" -X POST…
There is a bean declared in a Spring boot configuration class with lazy annotation, which is referenced in camel route.
The lazy annotation stops the eager loading, but since it is reference in camel route its gets initialized.
Example ::…
I'm looking for an example/documentation of how to implement a custom Apache Camel component and endpoint with Spring Boot in Java Config. I don't know how I have to annotate the classes, that Could you please provide an example.
Without using…
I'm developing a new application which is Spring Boot with camel. I am exposing REST endpoints as part of this application.
I'm little confused to choose between these two options:
Spring Rest Controller --> Spring service with producer template…
I have this route:
from("timer://test?repeatCount=1").routeId("newRoute")
.streamCaching()
.process(exchange -> exchange.getIn()
.setBody(exchange.getIn()
.getBody()))
.marshal()
.json(JsonLibrary.Jackson)
…
In a property file a variable test has been defined:
test=OLD_VALUE
In the following Spring-DSL definition a camel route is defined. Properties are loaded via PropertiesComponent.
I am trying to build rest api using camel-rest-dsl. I have tried with multiple provider, spark-rest, jetty. But it throwing marshelling exception when i use RestBindingMode.json, if i remove rest binding mode it works…