Skip to content

Tag: apache-camel

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,…

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 getOr…

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 impor…

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…