Re: streaming results using rest dsl

2015-01-04 Thread Claus Ibsen
Hi It depends on what component you use with the rest-dsl. eg jetty / restlet etc and what they support. Usually they support the body as a InputStream type which they can use to transfer to their output stream. Not sure if any of them support the RS spec classes / annotations. But it would be ni

Re: streaming results using rest dsl

2015-01-04 Thread Claus Ibsen
On Sat, Jan 3, 2015 at 11:22 AM, Tim Dudgeon wrote: > On 03/01/2015 09:35, Henryk Konsek wrote: >> >> Hi Tim, >> >>> Is there a way to stream output using the Rest DSL? >> >> I used the following to download stream of bytes from the REST API: >> >> rest("/api"). >> >> get("/download").bindingMode(

Re: Sending route for execution

2015-01-04 Thread Claus Ibsen
On Sat, Jan 3, 2015 at 11:44 AM, Tim Dudgeon wrote: > I am trying to work out best approaches to sending a route to a remote > CamelContext for execution. e.g. I have a client that generates the route > definition and then needs to send it to a sever for execution. > > I notice that you can apply

Re: What's wrong in my REST paths?

2015-01-04 Thread Claus Ibsen
The rest-dsl is just a facade on the choosen transport. And in your case its the servlet component. So I wonder if you can get that working to match a .csv uri? It may be that the servlet component from either Camel or the actual impl in the java servlet server may not support matching using dot. T

Re: Mail - copyTo not working and MailBoxPostProcessAction not found

2015-01-04 Thread Claus Ibsen
Hi btw for postProcessAction=myPostProcess you should use postProcessAction=#myPostProcess. See referring beans from uris section at http://camel.apache.org/how-do-i-configure-endpoints.html On Fri, Nov 28, 2014 at 6:36 PM, A-Light wrote: > Hi all, > I'm using a route that gets new messages fro

Unchecked conversion warning during message extraction

2015-01-04 Thread Giacomo Lamonaco
Hi all, i have a little problem using Generic during message routing. I have a single route containing these two actions: ... ArrayList list = exchange.getIn().getBody(ArrayList.class); I have an unchecked conversion warning during compilation. I don't if it is a java issue, but t