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()…
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[])-…
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")
…
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…
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")
…
I have a processor with below code
ProducerTemplate.sendBodyAndProperty("direct:endpoint", body, property, propertyValue)
I need to use propertyValue in the below route()
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:
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");
…
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…
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 =…
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…
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…
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…
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…