We have a Swing UI client which uses an Appclient which sets up a Spring framework context with CAMEL beans for talking to remote services in an OSGi server via JMS. Here’s an example of one of the service references: Recently we added ‘camel-http’ features to the OSGi (Karaf) server to allow the use of HTTP URI endpoints. This inclusion
Tag: apache-camel
JSCH -> Permanently added ‘my.host.com’ (RSA) to the list of known hosts (bug)
I have a file on an SFTP server and my application reads this file line by line. From the point of view of the application, everything is fine. The file is processed and everything works as expected. But there is one oddity. My application is continuously (one message per minutes) printing this message in the log: I am using version
Camel TypeConverter still throws NoTypeConversionAvailableException even if allowNull set to true in @Converter annotation
I’m using Apache Camel 3.4.3 and trying to convert empty value for my camel route with custom TypeConverter like this: but this way fires exception: org.apache.camel.InvalidPayloadException: No body available of type: ru.swiftcorp.common.utils.DataContainer but has value: of type: java.lang.String on: Message. Caused by: No type converter available to convert from type: java.lang.String to the required type: ru.vtb.swiftcorp.common.utils.DataContainer with value . Exchange[].
Create http and https endpoint using camel in the same server with jetty
I am trying to create HTTP and HTTPS endpoint in one of my web service. I want secure few endpoints with HTTPS and other endpoints with plain HTTP. I am using the below code to do the same. The https works fine with this setup but the http endpoint does not work. If I remove the method call to configure
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
Quotation marks in Camel Content-Type header
I am trying to invoke a SOAP service using camel-http4. This service requires me to send the following header: Content-Type: application/soap+xml;charset=UTF-8;action=”ListBerichten”. I have to include the quotation marks, or otherwise the service will return a 400 code When I try this with a client like Postman or SoapUI or curl it works fine, but when I try it with 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
Apache Camel custom Service and shutdown
I have implemented a Camel Service , but when i try to shutdown my route , it’s impossible …. I have to kill the process. What i have missed ? First I create a class which implements camel.Service : …