Take a look at the jms-to-file from the examples
http://svn.apache.org/repos/asf/camel/trunk/examples/camel-example-jms-file/
Look at the JmsToFileRoute; You'll be using a jetty http endpoint 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, 2010 at 10:28 PM, ztesoft <[email protected]> wrote:
>
> 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-tp27085959p27085959.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>