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
Tag: spring-camel
Request validation doesn’t happen in camel rest
I am trying to experiment by building some simple API’s with apache camel. The request body for a post request is empty but camel doesn’t return bad request instead it returns 201. Here is what I do; Generate classes from studentreg-api.yaml [This is a valid openapi 3 yaml document] Using camel, spring boot to build REST endpoints Step Configured camel
Apache Camel: Process file line by line
I have a large file that I want to read and process. I don’t want to load it entirely into memory and instead of this I read each line of the file separately and perform actions on it. I’ve come to this implementation during the work: Before starting to read the file I skip header and footer .filter(/*condition for skip
How to use both tokenize and simple in Spring DSL (XML route config) for Apache Camel in split?
I’d like to repoduce with XML the expression from Java DSL like this: When I try to set up , consisting of two elements, and like that: Or like that: it doesn’t allow to validate the XML with the scheme: and So, it is impossible to put simple and tokenize together in XML, so how to do that? Answer Surprisingly,
Running jar inside target folder vs running jar inside project folder
I have weird problem. When I’m running jar from project folder which goes: java -jar ./target/project.jar everything works fine, path is read correctly. but when I run jar inside target folder it stucks and nothing is doing further The path is all the time the same: What can be wrong? How can I avoid such a situation? Answer You Camel