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: The jar package dependency problem

2013-08-18 Thread yiwang
My goal in eclipse to build a platform, the platform is based on the added in accordance with the osgi specification bundles on the equinox, wants to use camel routing on the platform, I need to add the camel-core-2.11.1.jar,javax.servlet-2.5.0.jar,camel-http-2.11.1.jar and so on, such as the camel

The jar package dependency problem

2013-08-18 Thread yiwang
Camel on osgi development route, need to be camel-http-2.11.1. Jar to join in, but need to rely on org.apache.commons.httpclient (version = "[3.1.0, 4.0.0)"), and then I downloaded the commons-httpclient-3.1-osgi. Jar to join in, but still lack the rely on, this is how to return a responsibility, h

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-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()

Why can not get the data

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

Re: ServiceMix and Camel how to realize the process can be configured

2013-08-11 Thread yiwang
At present the four bundles of foreign service based on HTTP url way (in the future will provide services in web service way). If a camel route ACTS as a bundle of similar scheduling function.This bundle will have contact with the four bundles. If I the camel route is configured with a-->b-->c-->d,

ServiceMix and Camel how to realize the process can be configured

2013-08-11 Thread yiwang
hello everybody: I ask everybody a question, I now do a logistics project.This project on OSGI platform development and deployment, is in the OSGI bundle as the basic unit, I now have four applications namely four bundles (harvest notice, delivery, acceptance, storage, in accordance with th