Questions tagged [spring-camel]

Spring wrapper over Apache Camel

more details here

586 questions
1
vote
1 answer

Camel Reading file and on exception move file to error folder

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…
IsidIoan
  • 403
  • 2
  • 5
  • 13
1
vote
1 answer

How to replace variables in GraphQL query using Camel GraphQL component

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…
1
vote
1 answer

Apache Camel: How to pass values from configure method to from() & to() components? -- [RESOLVED]

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…
Arjun
  • 21
  • 3
1
vote
1 answer

How to output Apache Camel metrics like metrics:timer:simple.timer to Prometheus using Micrometer format with /actuator/prometheus

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,…
1
vote
0 answers

Reload the xml camel context into same camel context that is already reg

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…
1
vote
1 answer

Exchange.NOTIFY_EVENT exchange option deprecated in camel 3.4 and looking for alternative

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…
James Mark
  • 319
  • 4
  • 15
1
vote
1 answer

Camel jetty endpoint accepting client messages without certificate

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…
Vikrant
  • 63
  • 1
  • 1
  • 8
1
vote
1 answer

Data not transferring from one endpoint to another endpoint with camel

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…
1
vote
2 answers

Getting PKIX path building failed Exception with Apache Camel while connecting to the Kafka cluster with SSL

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…
1
vote
1 answer

Polymorphic Json Marshalling with Apache Camel

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("*") …
1
vote
2 answers

Stop camel route if MQ becomes unavailable

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") …
sree1611
  • 352
  • 1
  • 4
  • 18
1
vote
2 answers

Implement counter variable in camel route

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…
Karthik
  • 27
  • 6
1
vote
1 answer

How to add the SOAP envelope and body for exchange object, while sending to the MQ with Apache Camel in Spring Boot App

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.
1
vote
1 answer

How to use Aggregator options such as completionSize, completionTimeout with split-aggregate

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) …
Sneharghya Pathak
  • 990
  • 1
  • 9
  • 19
1
vote
1 answer

How to pass Camel VM messages between multiple Spring Boot applications in Tomcat

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…