camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Satch <>
Subject RE: from http://... to file://...
Date Sun, 22 Jun 2008 20:18:13 GMT


I am quite new to camel, so plz excuse me if i say something fundamentally
What i am not able to understand here is that if I wish to open an http
serversocket to listen to requests and persist them to a file, how do i go
for it. I could open a serversocket using jetty component, and then I routed
the incoming messages to a file URI. It threw me exception.

My analysis of the problem was that the jetty server component makes an
Inout exchange and forwards the content to file URI and waits for the
response to come as it instantiated an Inout MEP. And it never gets the
response back as the file component probably expects an Inonly MEP or
something of that sort. 

My questions

1. Is my analysis wrong.
2. If I wish to do what i am trying to, how do I go abt it ?
3. How do I trap an exchange programtically and then do something with it ?

>Ah the issue is that the Jetty component is an EventDrivenConsumer and not
Scheduled. So you have to >trigger the event yourself to start the event in

>This will invoke the google homepage every 10th second and store it as a

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message