Re: Camel Restlet

2015-08-02 Thread anish.somadevan
Am having a similar kind of issue where am not able to send custom headers to a REST URL using camel restlet. This is my route, token http://MyRESTAPI/messages"/> But i get a error message from the API mentioni

Re: Camel Restlet

2015-08-02 Thread anish.somadevan
Yes, it is Authorization. I have tested it from a local REST client with the same header, and that works fine. I just noticed that when i set the headers i get an error message saying there are no consumers to process the message. But when i don't set the headers i get the error of header missing

Re: Camel Restlet

2015-08-02 Thread Gnanaguru S
This looks like, the API which you are calling is not expecting this header. Are you sure it is 'Authorization' ? It can be something else as well, like X.Authorization. Otherwise I dont see an issue with the way you are setting the header. Cheers Guru -- View this message in context: ht

Re: Camel Restlet

2015-08-02 Thread anish.somadevan
This is the error message i get 04:25:01,428 INFO [callRestAPI] (Camel (camelAgent) thread #2 - JmsConsumer[ISEEOutboundQueue]) Routing to RestAPI 04:25:01,430 INFO [callRestAPI] (Camel (camelAgent) thread #2 - JmsConsumer[ISEEOutboundQueue]) Headers set in Javascript {Authorization=MyToken, Con

Re: Programmatic CXF Endpoint

2015-08-02 Thread sloanecourt
Thanks very much for implementing this change, very simple to use. The only problem I have at the moment is configuring the SSL support in the Client. Coding is not the main issue, as this is discussed on several threads, what I'm looking for is a way of utilising the mechanism Camel uses internal

Re: Camel Restlet

2015-08-02 Thread anish.somadevan
Also, i have another question on how to pass arguments to a Javascript from route. I have the following route, When i try to pass arguments to this Javascript (generatetoken(key).js), it throws error saying file not found. The argument is being consi

Some Stupid Questions

2015-08-02 Thread Felix Thomas
Hello, I had some doubts so I thought the forum is the best way to get some answers. 1) Since I am using XML DSL earlier Java DSL. I have a Bean defined like below. Currently the Constructor is passed. But How do I make it dynamic i.e. decide based on the route which argument to pass. D

Re: Camel Restlet

2015-08-02 Thread anish.somadevan
My connection was meant to be HTTPS but i was using HTTP in my URL. Now when i change my URL to HTTPS, i get the following error, WARNING [org.restlet] (Restlet-69709808) Exception while writing the message headers.: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection? Can

Re: Some Stupid Questions

2015-08-02 Thread Henryk Konsek
Hi, > Is keeping a separate Camelcontext for each route a > best approach, or only if there a lot of traffic of messages then > you should consider separation. The number if the contexts you have doesn't really affects the performance. The number of contexts is rather related to the architecture

Re: Some Stupid Questions

2015-08-02 Thread Minh Tran
On 02/08/2015, at 10:05 PM, Felix Thomas wrote: > Hello, > >I had some doubts so I thought the forum is the best way to get some > answers. > > 1) Since I am using XML DSL earlier Java DSL. >I have a Bean defined like below. Currently the Constructor is passed. > But How do I make it

Re: Camel Restlet

2015-08-02 Thread anish.somadevan
Thanks for letting me know. Am fairly new to Camel. Should i place the certificate in my Trusted certs directory, or should i handle it in my route? Also,Can you please provide me an example on how to use Camel-jetty for invoking REST API? -- View this message in context: http://camel.465427.

Re: Camel Restlet

2015-08-02 Thread anish.somadevan
Although one concern i have is that if the certificate from Server is changed in future then i have to import new cert. Can you let me know how to access the keystore in route URI? Is there any specific attribute to mention the keystore? Thanks, Anish -- View this message in context: http://c

RecipientList, http4 and Spring DSL problems with URI encoding

2015-08-02 Thread Jwyatt98
Hi, I'm having trouble using recipientList inside of Spring DSL. I'm relatively new to Camel, but I feel like I have a grasp of a lot of the concepts. However, I can't seem to figure out what I'm doing wrong here or if I'm doing something that isn't really supported. My goal is to invoke multiple

Re: Programmatic CXF Endpoint

2015-08-02 Thread Willem Jiang
Yeah, there is a gap between the Camel SSL setting and CXF SSL setting, that is why we introduced the CxfEndpointConfigurer to fill this gap. Current Camel SSL Support is per the camel context , we may need to introduce a option into CXFEndpoint to let it know how to create the SSLContext from C