How to import camel in a java application program

2010-01-08 Thread ztesoft
I write a java application program to achieve a HTTP server. Camel is used in this program to receive the http requests and transfer them to a file. Does anyone suggest me how to do this? -- View this message in context: http://old.nabble.com/How-to-import-camel-in-a-java-application-program-tp

Re: How to import camel in a java application program

2010-01-08 Thread ztesoft
point in > place of the jms one e.g. > > from("jetty:http://0.0.0.0/8080/";).to("file:test") > > Remember, you'll need to include the camel-jetty dependency so add > this to your pom. > > Give it a try. > > ste > > On Fri, Jan 8, 201

Re: How to import camel in a java application program

2010-01-09 Thread ztesoft
The content of > any http request sent to '/' on the server will be written to the file > 'test' > > > On Fri, Jan 8, 2010 at 11:34 PM, ztesoft wrote: >> >> Does it mean I should use jetty for HTTP server? >> >> >> Stephen G

Re: How to import camel in a java application program

2010-01-10 Thread ztesoft
ion.addRoutes(RouteDefinition.java:630) at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:136) ... 7 more Java Result: 1 what can I do for this error? Claus Ibsen-2 wrote: > > On Sat, Jan 9, 2010 at 11:23 AM, ztesoft wrote: >> >>

Re: How to import camel in a java application program

2010-01-10 Thread ztesoft
I put camel-http-2.1.0.jar into my classpath. Are there large differences between them? willem.jiang wrote: > > Hi, > > Did you put org.apache.camel:camel-http:jar:2.2-SNAPSHOT into your > CLASSPATH ? > > Willem > > ztesoft wrote: >> Dears, >&g

Re: How to import camel in a java application program

2010-01-10 Thread ztesoft
Otherwise, I can not download the camel-http2.2.0 using the camel Download Mirrors. Can you give me a usable URL? willem.jiang wrote: > > Hi, > > Did you put org.apache.camel:camel-http:jar:2.2-SNAPSHOT into your > CLASSPATH ? > > Willem > > ztesoft wrote:

Re: How to import camel in a java application program

2010-01-10 Thread ztesoft
ainer. willem.jiang wrote: > > If you are using camel-core-2.1.0.jar and camel-spring 2.1.0.jar, using > camel-http-2.1.0.jar should be OK. > > BTW, I assume you don't deploy these jar to an OSGi container. > > Willem > > ztesoft wrote: >> I put camel-http-2.1.0.ja

Re: How to import camel in a java application program

2010-01-10 Thread ztesoft
he camel context and camel route ? > Maybe you miss something. > > Willem > > ztesoft wrote: >> yes, I used camel2.10 jar files(camel-core-2.1.0.jar, >> camel-http-2.1.0.jar, >> camel-spring-2.1.0.jar, camel-test-2.1.0.jar) >> >> I just wrote a java app

Re: How to import camel in a java application program

2010-01-10 Thread ztesoft
g-2.1.0.jar, camel-test-2.1.0.jar) > > Please put camel-jetty-2.1.0.jar into you CLASSPATH. > > Willem > > > ztesoft wrote: >> Sure. >> >> public class HttpToFileRoute { >> >> public static void main(String args[]) throws Exception { >&

Question about multicasting.

2010-01-10 Thread ztesoft
Dears, I try to use multicast to save the received message into two files using "from("jetty:http://0.0.0.0:8080/";).multicast().to("file://output","file://output1");" It works correctly. Two files will be saved in /output/.camel/ and /output1/.camel/ folders separately. But if I use activemq for

Re: Question about multicasting.

2010-01-10 Thread ztesoft
Maybe save the http data as a String is not a best way, but it is a usable way. If I want to send no String data like image or some objects, I should do some additional works. Claus Ibsen-2 wrote: > > On Mon, Jan 11, 2010 at 7:00 AM, ztesoft wrote: >> >> Dears, I try to use

Re: Question about multicasting.

2010-01-12 Thread ztesoft
; If it does, does the multi-cast support a strategy for end-user who can >> control how to duplicate the data saved in message? >> >> >> -Original- >> Sender: Claus Ibsen [mailto:claus.ib...@gmail.com] >> Date: 2010-1-11 14:18 >> Receiver:

Re: Question about multicasting.

2010-01-13 Thread ztesoft
Do I walk a right way to solve the problem? Claus Ibsen-2 wrote: > > On Wed, Jan 13, 2010 at 8:07 AM, ztesoft wrote: >> >> This method "seems" like solve the problem. >> But, I find soapUI waited for the http reply after it sent the request >> unti

Re: Question about multicasting.

2010-01-13 Thread ztesoft
wireTap(direct:b) > transform(constant("some reply")); > > from(direct:b) > multicast > > > On Wed, Jan 13, 2010 at 9:35 AM, ztesoft wrote: >> >> I find soapUI waited for the http reply after it sent the request until >> the >> program