I'm using apache camel and spring boot to implement the integration flow between two tables. Source table includes more than 1000 records. What I want to do is after doing some modification in to the source data those data should insert to a another…
I have some records in files.
There are header, body, and footer.
In the some case, the file has all three type records.
but, the file has only header and footer in another case.
I want to parse these file by using same data format.
Data Defined.…
I'm using the DSL to build an async queue processor.
The code of the route looks something like this:
from("seda://exportListQueue")
.setProperty("originalRequest", simple("${body}"))
.setHeader("CamelRedis.Key",…
Camel sftp is unable to poll more than 2 levels deep when the java code runs on Linux, but it works fine on Windows.
For example, polling files from
sftp://user@domain:22/folder1/folder2?...
works on both Unix and Windows. But, when I use…
I am beginner for camel. I have some problem.
We are implementing file transfer system using camel.
I set property from external property file.
But application is not accessed to this property file. We cannot use propertyplaceholder because the…
I'm using Ehcache with Apache camel. I'm exposing a rest endpoint which should delete all the keys from Ehcache. For some reason, its not deleting the keys after calling the rest endpoint.
Following code is being used to achieve the same :…
I am trying to create a route in Apache Camel that will read data from Azure Event Hub. I have tried searching all over but couldnt find a way.
Traditional way as explained in this works,…
How can I mock the following code:
from(directoryPath + "?recursive=true)
.routeId("Test")
.process(testProcessor)
.recipientList(simple("${header.nameOfMyDestination}")
The header will be set in my processor.
I have tried multiple…
Getting error while calling addRouteDefinition. I am dynamically adding rest to camelcontext.
Error
org.apache.camel.FailedToCreateRouteException : Failed to create route ... because of Multiple RestConsumerFactory found on classpath. Configure…
Apache Camel CronScheduledRoutePolicy not stopping route?
I am trying to start and stop my route which reads from google-pubsub component and pushes to a JDBC datasource(oracle). I want to do this only in certain times of day as the Oracle database…
I want to unzip files whenever a "direct" route is called. The fileName I am getting from some other direct route.
from("direct:unZipFile")
.from("file:C:\\MYFILES\\File\\Unzipped\\?fileName=${header.fileName}&idempotent=true")
…
I have a route camel which uses camel-undertow and camel-http4 to be used as gateway between two distinct web applications.
The route works fine when last endpoint response has small size. However when last endpoint response has large size I receive…
I have rest service for delete operation which actually return nothing. How to return nothing()void response as response in Apache camel rest service
@RequestMapping(value = URI_REMOVE_ACTIVITY_DELETE, method = DELETE)
public void…
This is my sample code
PHONE.NUMBER EQ {phoneNumber}
How to check whether there is any space in 'phoneNumber' before assigning to PHONE.NUMBER field?
if there is any…