Questions tagged [spring-camel]

Spring wrapper over Apache Camel

more details here

586 questions
1
vote
2 answers

Apache Camel/Spring boot disable tracing

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…
Prashant S
  • 349
  • 4
  • 14
1
vote
2 answers

How to use dynamic from in Camel route or restart route without stopping application

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…
Andrey
  • 433
  • 1
  • 5
  • 19
1
vote
1 answer

Camel's endChoice(): What's the point? (not the difference from end())

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()…
LeoAlmDiniz
  • 75
  • 12
1
vote
1 answer

How to retrieve query parameter value while using Apache Camel?

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?
1
vote
1 answer

Get Faulty Route in 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…
Marc
  • 33
  • 7
1
vote
1 answer

variable substitution in properties file not working in spring boot 1.x and apache camel2.x

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…
Balanjaneyulu P
  • 151
  • 1
  • 1
  • 6
1
vote
1 answer

How to send REST requests with parameters in Apache Camel

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…
1
vote
0 answers

How to generate header using SoapJaxbDataFormat

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…
Sandeep
  • 11
  • 1
1
vote
1 answer

How to add Global Exception Handling on RouteTemplate

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…
Elif
  • 11
  • 2
1
vote
1 answer

How do I specify the directory path correctly for an SFTP server?

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…
Andrei Kulik
  • 446
  • 1
  • 5
  • 21
1
vote
0 answers

Camel is not deleting threads after throwing exception

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…
juldeh
  • 129
  • 13
1
vote
0 answers

Test case for Camel Springboot application takes a longer build time

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 =…
Robin
  • 109
  • 9
1
vote
2 answers

Exception in FluentProducerTemplate in Apache Camel after upgrade to 3.7.2

I've the following dependency to 3.7.2: org.apache.camel.springboot camel-spring-boot-dependencies 3.7.2 I've this in the…
John Doe
  • 143
  • 2
  • 13
1
vote
1 answer

Apache Camel with Spring boot unit test setup

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…
sherring
  • 121
  • 1
  • 1
  • 11
1
vote
0 answers

How to activate TLS over camel-grpc-starter?

What are the properties to add in application.properties file in order to activate TLS over camel-grpc-starter server?
Wefa
  • 31
  • 4