Hi Stephen

On Tue, Feb 10, 2009 at 9:18 PM, Stephen J <stephen.joy...@mclaneco.com> wrote:
>
> I have written some code to add event handling to camel. The file I've
> attached to this post contains the code and a little bit of test code to
> explain what I'm trying to do here.
>
> 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.
Thanks for sharing your work.

Its interesting idea to have a notifcation system. Kinda like the spring event.

Starting and stopping routes/consumers/producers and whatelse is
certainly something we are looking
into improving in Camel 2.x. You can do most of it now, but its not
quite there yet.

We are also looking into adding new routes dynamically from whatever
source: JMX, console, dynamic language, new bundles or whatnot.

So an event system within Camel might come handy.

Please keep up your work and when the dust settles for Camel 2.0 we
can take a peek at this again.


>
> http://www.nabble.com/file/p21939706/CamelEventCode.zip CamelEventCode.zip
> --
> View this message in context: 
> http://www.nabble.com/Camel-Event-Code---requesting-comments-tp21939706s22882p21939706.html
> Sent from the Camel - Development mailing list archive at Nabble.com.
>
>



-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/

Reply via email to