[REST DSL]Camel 2.14.1 - Http parameters handling

2015-01-21 Thread Vaïsse-Lesteven Arthur
Hi everyone. Another question relative to the Camel Rest DSL. I want to define a GET method that take parameters in order to return some resources depending of parameters values. My first attempt was to send parameters as a POJO Json Object in body. It appears that this is not compliant with the HT

Re: [REST DSL] Camel 2.14.1-SNAPSHOT : How to configure SSL on jetty component ?

2014-12-09 Thread Vaïsse-Lesteven Arthur
Hi Willem, I thought that the creation of the jetty server was delegated to the rest component and that I can't create one myself. I so tried to pass it option through endpointProperty/componentProperty. I'll try to create a jetty bean out of the rest configuration ! More tests yesterday night im

[REST DSL] Camel 2.14.1-SNAPSHOT : How to configure SSL on jetty component ?

2014-12-08 Thread Vaïsse-Lesteven Arthur
Hi everyone, Due to bugfixes required to use the Rest DSL with jetty I upgraded to camel 2.14.1-SNAPSHOT. I tried many approachs to set up SSL connection but I'm unable to figure out how to do it properly. I tried this : And Both these solutions end on the following error : I suppose that "h

Re: [Rest DSL] Automatic convertion of body to java.util.Map . How to fix it ?

2014-11-27 Thread Vaïsse-Lesteven Arthur
It works! Using : Maybe adding the corresponding documentation for XML synthax to the documentation could be a good idea. I read the doc many time without understanding that this part also apply for XML. Anyway, thank you! Arthur. -- View this message in context: http://camel.465427.n5.nab

[Rest DSL] Automatic convertion of body to java.util.Map . How to fix it ?

2014-11-26 Thread Vaïsse-Lesteven Arthur
Hi every one! I'm trying to create a RESTful API using the Rest DSL capacity of the release 2.14.0 of Camel. My problem currently come from the fact that the body of the Exchange is automatically casted into a java Map object. Here come a reduced example (I tried to make it as small as possible.

Re: Problem with REST DSL (2.14.0) and String bean

2014-11-14 Thread Vaïsse-Lesteven Arthur
Thanks to a teammate, I finally understood the error. Problem really come from the definition of a "java.lang.String" bean in the camel context. When putting in the camel context I got the following log : [ main] JaxbDataFormat INFO Creating JAXBContext

Re: Problem with REST DSL (2.14.0) and String bean

2014-11-12 Thread Vaïsse-Lesteven Arthur
Hi Claus, Firstly, thank for your answer. I currently use Maven to manage dependencies, and I do not specify different versions of Apache Camel nor in the POM nor in the dependency tree. As you suggested it, I double checked it again. But, because human beings are fallible, I link you the maven d

Problem with REST DSL (2.14.0) and String bean

2014-11-10 Thread Vaïsse-Lesteven Arthur
Hi everyone, I'm currently trying the new REST DSL of the Apache Camel 2.14.0 release. And as the title of this post state it, I got problems with a bean that specify a file name. Let's show what's wrong. Here come a valid XML file reduced to a test case. It only define a String bean and a Camel