In my Apache Camel/Spring Boot application console I see tons of camel tracing starting with below. According to this camel.springboot.tracing=false should disable it but it doesn't work. Looking for the right way to disable…
I have existing Spring Boot application that uses Camel framework for getting data from different folders. All routes poll data in similar way:
from(fileUriWithCurrentDay(path, config.getParams())).routeId(ROUTE_ID)
where method defined as…
I have found 2 questions here asking the difference between Camel's .end() and .endChoice(). And this is not an issue for me. It is quite clear for me that .end() is used to finish .choice() blocks and .endChoice() is used to finish .when()…
I have a REST endpoint http://localhost:8080/replaymessages/{messageids} wherein messageids will have comma (,) separated values - say 123,456,789 and so on. How to retrieve these values while using Apache Camel?
When using camel, I can use
onException(Excepction.class).process(new ExceptionListener())
to react to exceptions on routes. Within my ExceptionListener I can get the exception, but is there a way to find out where exactly the exception was…
I have declared one property in the application.properties file like below
hu.ednpoint=https://${serverhost.name}/subscription/event
de.ednpoint=https://${serverhost.name}/consume/event
I am expecting the value of ${serverhost.name} will be…
I am curious how I can manage the HTTP REST requests in Apache Camel?
I need to iterate through the list of IDs and place the particular ID from the list in HTTP GET request. This list I would receive from a database.
I need to send request to third…
First I have generated pojo class using jsonschema2pojo plugin using WSDL file.
My WSDL file contains Header and Body.
Body Root Pojo looks like this:
public class SubmitCustomerOrderRequest {
@XmlElement(required = true)
protected…
I am looking for a way to add global exception handling on all routes generated by multiple RouteTemplates. I have tried the following way but the onException block is not getting added to the routes.
Can you help me understand what I am doing…
I have the /test directory by this path on the SFTP server - /out/test (root directory -> /test). I set this path in the SFTP URL for my application - sftp://username@host.com:22/out/test?fileName=file.txt, but it throws an exception:
Cannot change…
I am facing the next problem: I have a camel route which throws an Exception to finish the execution. This Exception is caught in the camel-context.xml file where I log 2 messages. The problem of this is what when I receive many events on this route…
I have written camel test case for my spring boot application as below.
@RunWith(CamelSpringRunner.class)
@SpringBootTest
@ActiveProfiles("test")
@ContextConfiguration(classes = Application.class)
@DirtiesContext(classMode =…
I am trying to get a sample setup doing a unit test on a very basic route and all the entries I've tried so far do not get me the CamelContext to be auto wired.
I have this for my route and following is the unit test.
public class SampleRouter1…