I am trying to create a data source for use with the Apache camel sql component and as per the documentation I have defined the spring data source properties and included the dependencies in my pom file: I have even defined a configured a data source as per numerous read examples (though if I am not mistaken, this isn’t needed
Tag: apache-camel
ERR_SSL_VERSION_OR_CIPHER_MISMATCH In camel Jetty websockets
I bought ssl certificate and i got .cert file which i imported in jks file using keytool I configure camel like this and i used this like :- but when i am trying to open websocket i am getting this. ERR_SSL_VERSION_OR_CIPHER_MISMATCH any help would be appreciated Answer This worked finally . it didn’t have private key so it was showing
Split a List of Lists with camel splitter
I have many ArrayLists created to hold the collections of separate entities to be split in to their own entities. these are added to an ArrayList then pushed to the exchange where I try to split the List of Lists. I can’t seem to split a list of lists. Tried many variations of the Splitter, with tokens, etc. after collecting
Camel unit test with cameltestsupport, template is always null
I am doing a simple unit test with Camel. All I want to do is to read JSON content from a file (under resources), send it to a Java class for validation – this is the route that I am trying to test. Whatever I do, the template (which I use to sendBody(json) is always null. Here is my code:
Apache Camel bean parameter binding issue with Spring DSL
I am running into a strange issue with Apache Camel and Spring DSL. Here is an excerpt of my Spring defined route: Everything works fine up until the last line that I posted. The extractDocumentRootOid(Exchange exchange) java method is executed and the result is stored to the documentRootOid header. The getOrganizationByOid(Exchange exchange, String oid) java method is executed and the
Possibility of passing MyObject to bean routing using Apache camel?
I am consuming messages from Apache kafka using apache camel JAVA DSLs. I am writing an object by converting it to byte[] on kafka. when I consume it I receive a message back with byte[]. I deserialize it and get an object. I checks it if it is an object of MyObject then need to pass it to bean using
Can anyone tell me how to test my Camel Route if I have a choice operation?
I have a Camel route that has implemented a Content based Routing EIP(Choice operation). I need to test it. I’m new to Camel. So, I’m unsure how to do it. Can anyone tell me how to test this operation. I have mentioned a sample code below that has to be tested. Answer You can simply “advice” your route and add
Apache Camel mock endpoint
I recently started to investigate Apache Camel and I have one issue. I start writing some test for my routes, and there are a lot of examples, where “to” part of route is written as So, I wrote a test, where I am exepcting to have mock:result as last endproint. Here is the questions: Is this important to write mock:result
Use Exchange Property in Camel DSL “to”
I want to set a property on a Camel Exchange and then use this property when saving the file. In my camel dsl I have the following: The file is being saved as: My processor is as follows: Any thoughts on what may be going wrong or how I can achieve this? Answer The to in the Camel is not
javax.management.AttributeNotFoundException
I am at Camel 2.9.0. I am able to view the MBean data(routes, processors, etc) for running processes in JConsole. I need to display the same in our user interface. While I try to fetch the attribute values, I get the following error. Note – Attribute “EndpointUri” is fetching the right value. Problem is with “FirstExchangeCompletionTime”. So I am concluding