Questions tagged [spring-camel]

Spring wrapper over Apache Camel

more details here

586 questions
0
votes
1 answer

UnmarshalException : camel soap unmarshaling error unexpected element

[com.sun.istack.SAXParseException2; lineNumber: 1; columnNumber: 1; unexpected element (uri:"http://service.example.com/", local:"custDetails"). Expected elements are…
0
votes
0 answers

Spring and Camel exlcuding routes in unit tests

I am writing tests for camel in spring boot project, i want to exclude all the routes except the one that i want to test. So below i want to test the "ftp-poller", i have split the routes into seperate files, but it still loads all the routes, i…
user1555190
  • 2,803
  • 8
  • 47
  • 80
0
votes
1 answer

Using alternate endpoints when testing Apache Camel + SpringBoot

I have a simple Apache Camel RouteBuilder class that roughly looks like: from("an FTP server") // log stuff .to("direct:split"); from("direct:split") // split CSV and aggregate the messages into separate files …
g_raham
  • 55
  • 6
0
votes
1 answer

Camel 2.21.0 - how to process on exception with streaming

I would like to log an error on exception and continue on next record/split, but it does not work. I tired OnExcepiton(), doTry() DSL but it does not work and goes to ErrorHandler. onException(IOException.class) .handled(true).process(exchange ->…
Ronak Patel
  • 3,819
  • 1
  • 16
  • 29
0
votes
1 answer

How to pass file name from 'from' to 'to' in camel?

I'm trying to work out how to process a file, and then copy the file to the /finished directory. If I just leave the 'to' as a directory, it generates file names for me. I want the same file name. In my processor, I have: GenericFile gfile…
djb
  • 1,635
  • 3
  • 26
  • 49
0
votes
0 answers

How to pass a POJO to mybatis which was bound to a REST route

I am using declaring some REST routes, one of which is as below: FaqLink is just a POJO with getter and…
theTuxRacer
  • 13,709
  • 7
  • 42
  • 59
0
votes
1 answer

Spring Boot - Camel how to handle multiple processes

I have 3 Spring Boot - Camel applications which is run individually. I need to chain these processes, say on completion of process A it should initiate process B and then once process B is completed it should proceed with process C. If any of the…
0
votes
1 answer

Camel 2.18.0 pollEnrich connection exceptions are not caught with OnException block

Im trying to download a file with dynamic filenames using pollEnrich in a loop , when there is a conenction exception at pollEnrich it was not handled in onException block even io cannot us docatch after the pollenrich statment. i also tried using…
0
votes
1 answer

RabbitMQ: ConnectionFactory gives "Connection refused" yet I can write all in one .to()

New Camel user here. I have a Spring Boot / Camel app and successfully got a route working which polls a REST endpoint, splits the JSON array into custom POJOS, transforms each one into one of our Protobufs, and then writes the protobuf out to our…
0
votes
1 answer

Unable to find property descriptor useOriginalBody on class org.apache.camel.builder.DeadLetterChannelBuilder

I'm trying to use the deadLetterChannelBuilder but can't find the correct properties for it. does anyone know what they are or where to find them? the one's in the doc don't seem to work. ? Unable to find property descriptor useOriginalBody on…
GLMills
  • 558
  • 1
  • 12
  • 37
0
votes
1 answer

ResultSet caching in Spring-boot Camel SQL

I have implemented a Spring-boot Camel batch application running every 5 mins which is using camel-sql component to query some data from table. I am using java DSL implementation and configuring my routing endpoints inside RouteBuilder.configure.…
Girish007
  • 442
  • 6
  • 26
0
votes
2 answers

Can not extend SpringBootServletInitializer while using Apache-Camel Spring starter

I am trying to create a deployable *.war from a Spring Boot application by following their documentation. I am having problem while extending SpringBootServletInitializer. It's giving me a compile time error saying The type…
R Ghosh
  • 35
  • 6
0
votes
0 answers

camel 2.21.0 - pgp encryption not working

Trying to use latest camle's pgp encryption, but seeing Caused by: java.lang.NoSuchMethodError: org.bouncycastle.openpgp.PGPPublicKeyRingCollection error, I have checked I have correct versions of camel and bouncy castle jars on classpath, also…
Ronak Patel
  • 3,819
  • 1
  • 16
  • 29
0
votes
1 answer

OnException maximumRedeliveries ignored

In the following route, the maximumRedeliveries clausule from redeliveryPolicy is ignored when we get an exception. We get: Failed delivery for (MessageId: ID-UW205584-58231-1527668174534-39-248 on ExchangeId: ID-UW205584-58231-1527668174534-39-24).…
0
votes
1 answer

Camel exchange failed without an exception

After upgrading from Camel 2.1 to 2.17 and some code modification we are having some problems with the exception handling in Camel. We send message from app A to app B. The happy flow works fine, but the unhappy flow doesn't. We send the message to…