On 23/01/2008, tieying Liu <[EMAIL PROTECTED]> wrote: > > Hi: > > I am trying to find a way to dynamically start/stop/deploy/update multi > camel contexts using a web admin console and maybe groovy. Has anyone done > this already?
I've done something kinda similar; using the ServiceMix MicroKernel you can hot deploy OSGi bundles (which are basically jars) and can contain Camel routing rules, a Spring XML and so forth. http://servicemix.apache.org/kernel/ Using the console you can start/stop bundles; it'd be trivial to add a Groovy based console for doing the same kinda thing. Or you can just edit, say a spring.xml or edit classes and have your IDE recompile them on the fly & update the .class files to have the bundles hot redeployed etc. So kinda similar to what you're suggesting, just implemented a slightly different way. The nice thing is this approach deals nicely with classloaders & reloading properly etc. -- James ------- http://macstrac.blogspot.com/ Open Source Integration http://open.iona.com