I have written some code to add event handling to camel.  From what I've read
on the forums and a number of the JIRA tickets there seems to be a need for
some type of event handling built into camel. 

If someone who is familiar with camel internals would take this code for a
spin and see if the idea will work with the rest of camel architecture,
maybe they can more properly implement some of the functionality I've added
in my code. I'm not familiar enough with the entire camel system to know if
this will work.

Basically this code enables camel components and processors to send and
receive events through the camel container.

I've also attempted to add the function of starting and stopping routes with
events, but it doesn't quite work right, and I'm not sure why. I can start
routes with events, but stopping a route doesn't prevent processing which
then causes camel to throw exceptions and stop working.

There's a more descriptive explanation in the readme included in the zip.

Hope this is useful. If not, feel free to toss it out. 

If there is a better way to do this type of thing than the with events then
please let me know. I'm trying to figure out a way to conditionally start
and stop routes. Thanks.

The code in the zip file has the ASF license attached.
http://www.nabble.com/file/p22058818/CamelEventCode.zip CamelEventCode.zip 
-- 
View this message in context: 
http://www.nabble.com/Camel-event-handling-code-tp22058818s22882p22058818.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to