camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marco Westermann <MarWesterm...@gmx.de>
Subject Re: Why can not get the data
Date Wed, 14 Aug 2013 10:16:41 GMT
Hi,

what exactly is you problem. Do you get an exception? try it with the 
following in your route:

.to("file:/d:/temp/outbox?fileName=data.txt")

recognize the / before d:

regards, Marco



Am 14.08.2013 12:00, schrieb yiwang:
> hello everyboby,I ask a question.
> I write the code:
> public class TestHttpCamel {
> 	public static void main(String args[]) throws Exception {
> 		CamelContext context = new DefaultCamelContext();
> 		context.addRoutes(new RouteBuilder() {
> 			public void configure() {
>                                 from("http://host:port/query_data_detail")
>                                 .to("file:d:/temp/outbox?fileName=data.txt");
> 				
> 			}
> 		});
> 		context.start();
> 	}
>
> }
>
> explain:
>            from("url") url---request service's url and the server returned in
> json form
>            to("uri")  uri--The local folder address
>
> Why not success from the server to store data in a file ?
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Why-can-not-get-the-data-tp5737243.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>


Mime
View raw message