Questions tagged [spring-camel]

Spring wrapper over Apache Camel

more details here

586 questions
9
votes
3 answers

Apache Camel: How to persist property or header between multiple Exchanges after split and subsequent Exception?

I have a complex route which is as below (partly): .when(header("KEY_1").isNull()) .choice() .when(header("KEY_2").isNull()) .split().method(SplitExample.class,…
Sanjeev Saha
  • 2,632
  • 1
  • 12
  • 19
7
votes
2 answers

Spring boot and camel testing with @SpringBootTest

I have spring boot app, with spring boot of version 1.5.8 and there camel 2.20.1 Simple route : @Component public class MyRoute extends RouteBuilder { public static final String IN = "file://in"; public static final String OUT =…
bijesanu
  • 225
  • 1
  • 2
  • 12
6
votes
3 answers

How to use the context Path in Camel routes?

i am new to camel. i am doing a project in spring-boot using camel for routes. I noticed that when I go to SwaggerUi to see the correct functioning of my Post calls the contextPath of the routes does not work: public void configure() { …
Jacket
  • 353
  • 6
  • 18
6
votes
1 answer

Why autoDiscoverObjectMapper is false by default in camel-jackson-starter?

Currently we are migrating our applications from Camel 2.x to Camel 3.x and faced an issue that JacksonDataFormat is not using an ObjectMapper from the application context by default anymore. Instead you need to provide a property…
6
votes
2 answers

No consumers available on endpoint: Endpoint[direct://LookUpRoute]

I'm new to Apache Camel. I'm trying to send an exchange from a java method to a route but it gives me "Caused by: org.apache.camel.component.direct.DirectConsumerNotAvailableException: No consumers available on endpoint" error. I want to understand…
sss1992
  • 117
  • 1
  • 2
  • 12
6
votes
1 answer

Getting 404 "Not Found" error from basic Spring Boot Camel REST DSL request

I have been working on a basic demo of Camel and REST DSL for the past few days, but I have finally hit a brick wall with this issue. I am fairly new to Spring Boot's magic, so any feedback is much appreciated! When I run the project, everything…
Rachel217
  • 63
  • 1
  • 6
5
votes
0 answers

Camel Test - Failed to create route... because of ref must be specified on: process

I wrote this camel route: @Component public class FirstRoute extends RouteBuilder { private static final String DIRECT_ENDPOINT = "direct:test_direct"; private static final String HTTP_ENDPOINT = "http:test_http"; @Autowired …
5
votes
2 answers

Camel read file from classpath resource?

I have a file on the classpath at "resources/file.txt" in a Spring Boot app. How do i reference this in a Camel route? I have tried: from("file:resource:classpath:?fileName=file.txt") and variations on it. Nothing seems to work. Any workaround here…
gurpal2000
  • 1,004
  • 1
  • 17
  • 35
5
votes
1 answer

set header in camel route with bean ref

from("direct:myRoute1") .bean(new DemoRoute(), "test(Demo,xxx)") .end(); from("direct:myRoute2") .bean(new DemoRoute(), "test(Demo,xxx)") .end(); public interface…
coder25
  • 2,363
  • 12
  • 57
  • 104
5
votes
3 answers

JsonMappingException with Apache Camel

I am getting below exception with Camel Route Caused by: com.fasterxml.jackson.databind.JsonMappingException: No serializer found for class org.apache.camel.converter.stream.InputStreamCache and no properties discovered to create BeanSerializer (to…
Jaydeep Patel
  • 2,394
  • 1
  • 21
  • 27
5
votes
2 answers

org.apache.camel.NoTypeConversionAvailableException: No type converter available to convert from type:

I have multipart file in the first place and I want to send it to camel pipeline and save this file with original name. my code: @Autowired ProducerTemplate producerTemplate; ... producerTemplate.sendBody("seda:rest_upload",…
gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
5
votes
4 answers

org.apache.camel.NoSuchBeanException: No bean could be found in the registry for:

I have the following route definition: @Component public class CamelRoutes extends RouteBuilder { @Override public void configure() throws Exception { from("seda:second") …
gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
4
votes
0 answers

Spring mvc Camel RouteBuilder rabbitMQ Connection reset exception

I have moved from spring 4.x to 5.2.0 and to camel 2.21.0, during the patching process of the packages, rabbitmq client began to throw the following exceptions: com.rabbitmq.client.impl.ForgivingExceptionHandler An unexpected connection driver…
user2552806
4
votes
2 answers

Jms component transacted and camel route transacted

After going through Camel In Action book, I encountered following doubts. I have below 2 routes A. from("file:/home/src") //(A.1) .transacted("required") //(A.2) .bean("dbReader",…
Raju Parashar
  • 312
  • 4
  • 17
4
votes
1 answer

Global exception handler across the camel context – covering all routes

I have camel 10 camel routes something like below: @AllArgsConstructor public class MyCamelRoute extends RouteBuilder { /** * {@inheritDoc} */ @Override public void configure() throws Exception { } } Above MyCamelRoute…
rocky
  • 753
  • 2
  • 10
  • 26
1
2 3
39 40