I am using camel to read from .csv files some records, tranform them with bindy and save them in db. However , when an error occurs for example when unmanshalling or when persisting a row from the file I would like to stop the processing of the file…
I'm trying to build a camel route to consume the message from ActiveMQ and extract some JSON fields and send the extracted payload to graphql server. I followed graphql component documentation, however, I was unable to figure out how to get the…
I have a scenario where I have to read a file from the location on certain interval, extract the file name & file path, hit 2 rest services which is a Get & Post call using those inputs & place the file in appropriate location. I have managed a…
Based on the Camel's metrics documentation, I'd like to meter 2 different timers within one route:
@Override
public void configure() {
from(
getMqttRouteConfiguration(
sourceId, mqttHost,…
Requirement is to load the spring xml camel context that is available in table into application (Single XML has both context and routes in it). When application starts, need to read this xml from table load into application.
for ex, assume the below…
I have been using the Exchange.NOTIFY_EVENT option in the producer template as below within the exchange create event under event notifier to not to call the exchange create event again and it was working fine when i was using camel 2.24 core but…
I am trying to configure camel jetty based rest endpoint for certificate. Whenever I send a request to https endpoint without the client certificate it still works i.e., there is a valid response from rest endpoint.
How do I make sure that
a) Only…
I'm requesting to https://xx.xx.x.xxx/consumers/ domain and I'm getting some response data as JSON format, and I'm passing it another endpoint direct:consumer, but in direct:consumer endpoint if print body I'm getting empty, could anyone help me how…
while I'm connecting to the Kafka cluster with apache camel with SSL then I'm facing the below problem, can anyone please help to resolve the issue
javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException: PKIX path building…
I'm refactoring a camel route to hopefully be a little more generic. (I'm also using spring boot, if that helps for any possible bean injection solutions)
from(fromKafka)
.routeId("Rest Models")
.removeHeaders("*")
…
I have one of the camel route as follows, there are many routes.
from("jms:queue:TEST.LQ?transacted=true&connectionFactory=jmsConnectionFactory&cacheLevelName=CACHE_NONE")
.routeId("routeid")
.autoStartup("true")
.transacted("requried")
…
I am trying to get the List of employee details From Database and Push it in to External System using REST API. I am able to create a route for the above flow .
Also, I want to know the count of created and failure records. So i created a counter by…
I wanna send message to the MQ with SOAP format but in exchange object i'll get only XML Data (without envelope,header and body), here i have to append the SOAP envelope and body to the exchange object as like below.
I can use an aggregator with completionSize and completionTimeout as below:
from("direct:aggregate")
.routeId("aggregate")
.aggregate(constant(true), new JSONAggregator())
.completionSize(500)
.completionTimeout(3000)
…
We have an application stack, deployed in Tomcat, that consists of several Spring Boot applications. As part of our operations, we want to send some messages to a vm endpoint, where a camel route will consume those messages and then publish them to…