I am unable to read in batch with the kafka camel consumer, despite following an example posted here. Are there changes I need to make to my producer, or is the problem most likely with my consumer configuration? The application in question utilizes the kafka camel component to ingest messages from a rest endpoint, validate them, and place them on
Tag: apache-camel
Is it possible to call the header value as a parameter for the method applied to the same object in simple interpreter, Spring DSL for Apache Camel?
Is it possible to call something like this in Apache Camel’s Spring DSL or like this For the second attempt it identifies .length() – 2 as a single method name call Answer You can increment and decrement with simple, so… I wouldn’t recommend, but for example:
How to create RESTful Web Service with Spring Boot and Apache Camel?
I’m learning Apache Camel in Spring Boot project and I try to create a Retful Webservice and the service is starting but the problem is that I get 404 when I call the endpoint. I created this class to hardcode some data: application.yml pom.xml The serviceis starting and this is the console log: But when I try to call the
Get key-value pairs from multipart/form-data HTTP POST request in Camel
I have an endpoint setup using Apache Camel to receive a multipart/form-data HTTP request. Essentially I am trying to submit a data file and a configuration file for processing. The request is as follows (generated by Postman): My route is set up like so: And my config file processor: I want to be able to retrieve the key-value pairs from
How to handle 4xx(without retry) and 5xx (with retry) exceptions in camel
I’ve a camel route which makes API request, the external service may though 4xx or 5xx. I have written HttpOperationFailedException handler to handle all HTTP related exception and I’m retrying all the Http exceptions irrespective of whether its client side or server side exceptions. I would like to handle them in a way, I need to avoid the reties for
How to debug which particular Camel Route has a kind of “CPU leak”? Is there a CU metrics per route?
We run a bunch of too different data scraping routes on our Camel instances. And at about 1 week after a start of the Camel run, the CPU resources occupied by the Camel tend to grow and never be released: As they reach 100%, the throatling starts and we miss the data. The first and very simple approach is to
Difference between “camel-activemq” vs “activemq-camel”
We are upgrading our system to newest stable frameworks/libraries. However, i found difficulty in understand between these two camel-activemq vs activemq-camel. Below are details: We are upgrading ActiveMQ to 5.16.2 version. Here AMQ provides “activemq-camel” libraries with its own camel dependencies like: Also, we are planning to migrate a service which runs on camel-2.x to 3.11.3. Here i see camel
Jackson ObjectMapper NoSuchMethodError problem wiht SpringBoot 2.2.7 and Camel 3.11.2
I am trying to setup project with simple post route: The application should accept invoices in XML format, convert them and send them to an external system. First I just want to accept the input string and print it. Error I am getting: I am using Java 11. Any suggestions? It seams like a libraries clash. Answer Camel 3.11.2 and
Apache Camel Java 8 Support
In this blog it has been written that Apache Camel will drop the Java 8 support in the mid 3.x versions: Java 8 will still be supported for the first number of 3.x releases but is expected to be dropped later in 2020 How can I know precisely from with version the Java 8 support has been dropped? If I’m
Communicate between microservices on the same machine without exposing a public API
I am relatively new to Camel and Spring, and I am making a service to predict stock prices using a neural network to practise using Camel, Spring and also DL4J. My service is divided into 5 microservices (Gateway, H2 SQL Database, Admin Console, Data Fetcher, DL4J Handler) which will each run in their own Java application. Each one has a