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 <imawan...@gmail.com> wrote: > 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 Exception { > main = new Main(); > main.enableHangupSupport(); > main.addRouteBuilder(new RouteBuilder() { > public void configure() { > > from("http://localhost:8080/wms/query_all_handlover_note?type=source") > > .to("file:d:/temp/outbox?fileName=data.txt"); > > } > }); > main.run(); > } > > } > still not get the data.I have direct access to > "http://localhost:8080/wms/query_all_handlover_note? Type = source",can > obtain the json 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-tp5737243p5737285.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen