Questions tagged [spring-camel]

Spring wrapper over Apache Camel

more details here

586 questions
2
votes
2 answers

Json string split and add addition object in the body using XML DSL in camel

In one of my use case i need to split the inbound json message into multiple message based on the array list that is available in the message. for example, in the below message split to be taken place based "actualData" array list. { …
James Mark
  • 319
  • 4
  • 15
2
votes
1 answer

Include/exclude exceptions in camel resilience4J

How to include/exclude exceptions from profiling while implementing circuit breaker pattern using resilience4J library in camel route(spring-boot application). we are using the following official library but it doesn't expose any API to include…
2
votes
1 answer

Asynchronous Camel Component - doStop() called immediately

I am trying to create a camel component which consumes an API from an external service. My Route is as follows from("myComponent:entity?from=&to=") .to("seda:one") from("seda:one") .aggregate(constant(true), new…
Shark Man
  • 21
  • 2
2
votes
1 answer

How to integrate Resilience4j metrics to Micrometer in Camel Spring Boot

I am using Camel with Spring Boot and Micrometer. In one of my routes I am using a circuitbreaker with Resilience4j: .circuitBreaker() .resilience4jConfiguration() .timeoutEnabled(true) .timeoutDuration(2000) …
2
votes
0 answers

Camel endpoint not mocked

I've a simple camel route and want to test it, but instead of the MockEndpoint the real Endpoint is called: import org.apache.camel.builder.RouteBuilder; import org.springframework.stereotype.Component; import lombok.extern.slf4j.Slf4j; …
boskop
  • 609
  • 5
  • 23
2
votes
0 answers

How to manually acknowledge rabbitmq message using Camel rabbitmq

We are using camel for rabbitmq producers and consumers. We create consumers with autoAck as false and we feel currently camel manages it internally to acknowledge that message after the consumer route`s processor is completed. What we want is a…
2
votes
0 answers

Springboot starter for Apache Camel (AMQP) doesn't find ConnectionFactory bean

I created an application to read messages from Apache qpid and to send them on Apache kafka. I am using Camel with Springboot starter. My Pom looks like this -
2
votes
1 answer

Apache Camel Idempotent Repositories that support clustering

I am trying to implement a Camel Spring Boot application that is using FileComponent to poll on a directory. I also want to support clustering meaning multiple instances of this Camel-spring boot application could be started and consume from the…
2
votes
1 answer

How do I return my API exception when orchestrating with Apache Camel?

I've been using Apache Camel on a project and I need the API response I call to be returned when it throws an exception.
Pedro
  • 41
  • 1
  • 2
  • 8
2
votes
1 answer

Failed to start route [A] because of duplicate id detected: [B]

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…
mindiga
  • 509
  • 3
  • 18
2
votes
0 answers

Authenticate Camel REST API using Basic Authentication or oAuth token validation

I am new to Camel (on Spring Boot) and implementing REST API using "netty-http" component. For Basic auth on a service, I know that we can validate the headers in a .process method in the route, but I am not sure if that is a best practice. I wanted…
2
votes
1 answer

Is it possible to add new elements to the Spring DSL?

I’m trying to add some new functionality to Camel - essentially a custom processor which takes several parameters and performs certain data manipulation, as well as the global configuration for all processors of this type within a given camel…
JavaDuke
  • 113
  • 6
2
votes
2 answers

Apache Camel Spring XML - Bean method call from filename expression

I have the following Apache Camel Spring XML configuration which process a file (input). I try to rename the file before it is copied (move option). I'd like the name of a file to contain a string which is the result of a method call from a bean…
raoul59
  • 23
  • 1
  • 4
2
votes
1 answer

How to check that a key exists with jsonpath in a Camel route?

This JSON object below needs to be checked if a key exists or not. If key exists and value is empty then I want set TH as default language. How to do that in camel route? { "languagePreference":"" } //set default value of language preference as…
Aadi
  • 1,131
  • 2
  • 16
  • 32
2
votes
1 answer

Streaming Data into Google BigQuery Tables : problems using InsertId to De-Duplicate Records

We are using the Camel BigQuery API (version 2.20) to stream records from a message queue on an ActiveMQ server (version 5.14.3) into a Google BigQuery table. We have implemented and deployed the streaming mechanism as an XML route definition in a…
JBLKT
  • 73
  • 1
  • 4