camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen Gargan <steve.gar...@gmail.com>
Subject Re: How to import camel in a java application program
Date Sat, 09 Jan 2010 08:44:48 GMT
Yes, adding the camel-jetty dependency and initiializing a route with

from("jetty:http://0.0.0.0/8080/").to("file:test")

will cause camel to stand up a jetty based http server. 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 <njchenyi@hotmail.com> wrote:
>
> Does it mean I should use jetty for HTTP server?
>
>
> Stephen Gargan wrote:
>>
>> 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 <njchenyi@hotmail.com> 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.
>>>
>>>
>>
>>
>
> --
> View this message in context: http://old.nabble.com/How-to-import-camel-in-a-java-HTTP-server-application-program-tp27085959p27086149.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>

Mime
View raw message