Questions tagged [spring-camel]

Spring wrapper over Apache Camel

more details here

586 questions
0
votes
1 answer

"Mark Invalid" error when reading values from application.properties file

I am learning to use Apache Camel with Spring boot. There is an demo I am working on where I am picking up a file from an FTP location and dropping it to a different location. The route works when I am using the ftps uri directly in the from()…
0
votes
1 answer

How to log the values of an array in camel body within the route

I have pasted the part of the code below, where i am trying to log the array in camel body ... .convertBodyTo(UserInfo[].class) .log(LoggingLevel.DEBUG,logger,"Output- ${body}") But in the log - Output- (UerInfo[])-…
0
votes
1 answer

How to use dynamic expression in camel poll enricher

I have below scenario using pollEnrich and Aggregator. private static final String SOURCE_FILE_COMPONENT = "file:%s?fileName=$simple{exchangeProperty.fileName}.%s"; from("direct:signatureVerificationRoute") …
rocky
  • 753
  • 2
  • 10
  • 26
0
votes
1 answer

How to make post request in apache camel rest

I am new apache rest dsl with spring boot, have made following changes Main Class package com.javaoutofbounds.pojo; import org.springframework.boot.SpringApplication; import…
rocky
  • 753
  • 2
  • 10
  • 26
0
votes
1 answer

How to expose the route as service so we can start or stop the route at runtime

I have following route class public class FileReaderRoute extends RouteBuilder { @Override public void configure() throws Exception { from("file:{{file.encrypt.source}}?noop=true;delete=true") …
rocky
  • 753
  • 2
  • 10
  • 26
0
votes
2 answers

How to use sendBodyAndProperty in camel

I have a processor with below code ProducerTemplate.sendBodyAndProperty("direct:endpoint", body, property, propertyValue) I need to use propertyValue in the below route()
rocky
  • 753
  • 2
  • 10
  • 26
0
votes
1 answer

QPID Connection factory properties

My system is based on camel and use Apache QPID 0.37.0 to consume messages from a remote AMQPS sever. Our system authenticates via a client certificate. Thus I have this piece of configuration:
Benoit
  • 5,118
  • 2
  • 24
  • 43
0
votes
0 answers

PGP SIGNATURE USING APACHE CAMEL

how to add route to encrypt and sign in PGP format using Apache camel
rocky
  • 753
  • 2
  • 10
  • 26
0
votes
2 answers

Camel : Iterate the elements in the header,process it parallely

I am storing the list of url's in the Apache camel header,below is the code, List supplierHotelRefs = new ArrayList(); supplierHotelRefs.add("a.com"); supplierHotelRefs.add("b.com"); supplierHotelRefs.add("c.com"); …
Raghavan
  • 401
  • 6
  • 21
0
votes
0 answers

how can i handle the binary data in apache camel?

i am using apache camel to convert image url to binary data. because of security area, i cant download image file directly so i have to use camel using download file. Client is spring boot. Server send this binary data and client receive it.and…
james
  • 235
  • 2
  • 5
  • 11
0
votes
1 answer

Camel Route not polling file continously for file Delay

I m using spring boot with camel . I have the following route configured : from("file://C:/LOGS/HTTPBESample?delay=1000&recursive=true&noop=true").process(new Processor() { public void process(Exchange msg) { File file =…
darshan kamat
  • 374
  • 7
  • 23
0
votes
1 answer

Http Connection pool shut down when restarting Camel context

I have defined a whole camel context with routes using the component camel-http4. Basically, upon context startup, this route issues every 5 minuets an http request towards an external server. This works just perfect. At some point I want to restart…
Benoit
  • 5,118
  • 2
  • 24
  • 43
0
votes
0 answers

Camel rest API to provide dynamic download

How can we provide document download using camel API, I need to provide an api using camel rest to response the file as download and I have the logic to create the pdf using apache fop, but i need to get some information how to respond the file as…
jozef
  • 11
  • 3
0
votes
1 answer

File downloaded from Camel Rest is empty

I'm trying to let users download a text file from my camel application. The trouble is, is that the file contains 0 bytes (should be 435b and is in the debugger). Could someone look at the code and advise? I'm trying to let users download a text…
Rick
  • 485
  • 6
  • 23
0
votes
1 answer

Camel kafka with Spring FileStateRepository

I trying to save the Kafka offset into file i use Spring boot it seems the offset is writing in the file but not reading so the fact camel will start reading from the beginning of the kafka topic at restart @Component public class Route extends…
Michael
  • 416
  • 1
  • 6
  • 16