camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yiwang <imawan...@gmail.com>
Subject Re: Why can not get the data
Date Thu, 15 Aug 2013 03:01:07 GMT
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.

Mime
View raw message