Questions tagged [spring-camel]

Spring wrapper over Apache Camel

more details here

586 questions
3
votes
2 answers

How can I include common behavior in several Apache Camel routes?

I am using Camel 2.19.2 in a Spring Boot 1.5.8 application. If I want, for example, to have several of my routes to be "status aware", how might I achieve this? What I mean by "status aware" is that the route will start, notify a component that…
Steve Storck
  • 793
  • 6
  • 25
2
votes
0 answers

Camel kafka - Consumer removed from consumer group during DR test

I am connecting to 12 kafka brokers (6 in each data center) Kafka : Confluent 7.3.1 Java:11 Camel: 3.16.0 Spring-boot: 2.7.13 auto.commit.interval.ms = 2000 auto.offset.reset = latest connections.max.idle.ms = 540000 enable.auto.commit =…
2
votes
0 answers

Can Apache Camel unmarshal CSV records into a POJO using header names?

I found several examples of Apache Camel Bindy unmarshalling CSV records into POJOs using field position: @CsvRecord(separator = ",") public class Person { @DataField(pos = 1) private String name; @DataField(pos = 2) private String…
James
  • 2,876
  • 18
  • 72
  • 116
2
votes
1 answer

How @Consume from Apache Camel does the mapping in Spring Boot project?

I'm learning about Apache Camel routes in Spring Boot projects and I have a project that does extension from some endpoints. The endpoints are not in this project, only the extension is done here. The extension is done using @Consume from…
elvis
  • 956
  • 9
  • 33
  • 56
2
votes
1 answer

How to set args using Spring Camel Lib in application.properties

Working with SpringBoot, Java 11. In application.properties i want to configure: camel.component.rabbitmq.args Documentation by camel using rabbitmq: https://camel.apache.org/components/3.18.x/rabbitmq-component.html#_message_body Note: I'm not…
Sérgio Thiago Mendonça
  • 1,161
  • 2
  • 13
  • 23
2
votes
0 answers

How to update JPA/Hibernate entities with Apache Camel

I have a spring boot project with apache camel (Using maven dependencies: camel-spring-boot-starter, camel-jpa-starter, camel-endpointdsl). There are the following 3 entities: @Entity @Table(name = RawDataDelivery.TABLE_NAME) @BatchSize(size =…
MatWein
  • 167
  • 1
  • 13
2
votes
1 answer

Setting handled as true in onException block prevents redeliveries

I am reading a file from a directory, and trying to call an API based on the data in the file. While trying to handle the exceptions, I am facing an issue. I am trying to configure the onException block to redeliver 3 times, with a delay of 5…
Sneharghya Pathak
  • 990
  • 1
  • 9
  • 19
2
votes
1 answer

Change Camel's basic /camel url

Issue: I would need to change the basic /camel url which camel uses by default, but when i try to change it in application.yml nothing happens to it. Would like to keep other systems intact without changing their urls, from what they already have…
2
votes
1 answer

camel-spring.xsd is missing in camel-spring-3.10.0.jar

I have upgraded the camel version to latest and found that xsd is missing in the jar file. The xsd file is available in camel-spring-3.8.0.jar. Due to this am getting exception in spring camel application. Is this a bug?
mac
  • 543
  • 1
  • 6
  • 17
2
votes
1 answer

What's the alternative to Camel BeanInvocation in camel 3.6.0

I am migrating our project from Camel 2.24.1 to 3.6.0. In the code we use BeanInvocation, where we mention the method that was being called in the bean and other classes inside the method. The org.apache.camel.component.bean.BeanInvocation is…
Esh
  • 836
  • 5
  • 16
  • 43
2
votes
3 answers

Camel SpringBoot POST returning Object NOT JSON

I am completely new to Camel, I have created two simple REST end points(using Camel 3.8.0 and SpringBoot 2.4.3), one GET and one POST, like this - @Component public class CamelController extends RouteBuilder { @Override public void…
CR Sardar
  • 921
  • 2
  • 17
  • 32
2
votes
1 answer

Why can't we unmarshal data into beans using univocity parser in apache camel?

Univocity parser supports reading data into bean when it is written in plain java - https://www.univocity.com/pages/univocity_parsers_tutorial#using-annotations-to-map-your-java-beans But when univocity is used with camel, it only unmarshals the…
Gourav Dey
  • 31
  • 4
2
votes
0 answers

Apache Camel Dynamic Routing Flow On Exception

I have successfully created few routes overriding configure() method of RouteBuilder. A for loop is used to generate routes on application startup, for eg: Route1: from("direct:Route1").to("netty-http:http://localhost:8080/route1) Route2:…
2
votes
0 answers

Illegal reflective access com.thoughtworks.xstream.core(/thoughtworks/xstream/xstream/1.4.11.1) java.util.TreeMap.comparator

from("direct:query") .setHeader("sObjectQuery", simple("SELECT name FROM account")) .to("salesforce:query?sObjectQuery=&sObjectClass=" + QueryRecordsAccount.class.getName()).to("log:?level=DEBUG&showBody=true"); …
Nagender S
  • 21
  • 2
2
votes
1 answer

Spring mvc 5.2.0 + RabbtMQ + Camel - CamelContext must be specified Exception

I am trying to use Camel with rabbitMQ in Spring MVC the following way: camel-context.xml:
user2552806
1 2
3
39 40