Re: Why can not get the data

2013-08-20 Thread nandla
camel route:from(" http://localhost:8080/wms/ query_all_handlover_note?type=source ").to("file:d:/temp/outbox?fileName=data1.txt") -- View this message in context: http://camel.465427.n5.

Re: Why can not get the data

2013-08-18 Thread yiwang
At present camel route:from("http://localhost:8080/wms/query_all_handlover_note?type=source";).to("file:d:/temp/outbox?fileName=data1.txt") can run successfully. thank you. -- View this message in context: http://camel.465427.n5.nabble.com/Why-can-not-get-the-data-tp5737243p5737494.html Sent

Re: Why can not get the data

2013-08-15 Thread yiwang
began to visit "http://localhost:8080/wms/query_all_handlover_note?type=source"; ,The results are shown: {"total":"1","rows":[{"id":51,"noteNo":"43a43d88-4f7f-4364-ad22-cd2076964d7a","from_entry_type":"dd","from_entry_no":"dd","storage_name":"dianlan","model_number":"d1","number":"ed","unit":"d","e

Re: Why can not get the data

2013-08-15 Thread yiwang
Hi: Add the corresponding jar package. Before the code changes for main.addRouteBuilder(new RouteBuilder() { public void configure() { from("jetty://http://localhost:8080/wms/query_all_handlover_note?type=source";) .to("file:d:/

Re: Why can not get the data

2013-08-15 Thread yiwang
hi: I have direct access to "http://localhost:8080/wms/query_all_handlover_note?type=source";. Can get the json data.I may not need an Http server for unit testing.I download the HttpTestServer.java,but have errors.If you feel the need,so how should I import which packages, normal operation of t

Re: Why can not get the data

2013-08-15 Thread Chris Wolf
Do you just need an Http server for unit testing? Maybe take a look at the class "HttpTestServer.java" in this directory in Git: https://fisheye6.atlassian.com/browse/camel-git/tests/camel-itest/src/test/java/org/apache/camel/itest/http On Wed, Aug 14, 2013 at 11:01 PM, yiwang wrote: > I rewrit

Re: Why can not get the data

2013-08-14 Thread Claus Ibsen
If you want the Camel application to act like a HTTP server, then you should use jetty component for that. See details at: http://camel.apache.org/jetty On Thu, Aug 15, 2013 at 5:01 AM, yiwang wrote: > I rewrite code is as follows: > public class TestHttpCamel { > private Main main; >

Re: Why can not get the data

2013-08-14 Thread yiwang
I rewrite code is as follows: public class TestHttpCamel { private Main main; public static void main(String args[]) throws Exception { TestHttpCamel example = new TestHttpCamel(); example.boot(); } public void boot() throws

Re: Why can not get the data

2013-08-14 Thread yiwang
Is not the reason to add "/" still not get the data. The HTTP routing write wrong or need what configuration? -- View this message in context: http://camel.465427.n5.nabble.com/Why-can-not-get-the-data-tp5737243p5737284.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Why can not get the data

2013-08-14 Thread yiwang
1.Is not the reason to add "/" 2.public class TestHttpCamel { private Main main; public static void main(String args[]) throws Exception { TestHttpCamel example = new TestHttpCamel(); example.boot(); } public void boot()

Re: Why can not get the data

2013-08-14 Thread Marco Westermann
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

Re: Why can not get the data

2013-08-14 Thread Claus Ibsen
Hi Babak explained this on another post today. So I am quoting his reply Hi Invoking start on the CamelContext is a non-blocking call, check links below to see how to keep your standalone Camel application running: http://camel.apache.org/running-camel-standalone-and-have-it-keep-running.html h