You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by tieying Liu <ti...@gmail.com> on 2008/01/23 18:28:42 UTC
what is best way to manage multiple camel contexts
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?
Thanks
--
View this message in context: http://www.nabble.com/what-is-best-way-to-manage-multiple-camel-contexts-tp15047497s22882p15047497.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: what is best way to manage multiple camel contexts
Posted by James Strachan <ja...@gmail.com>.
On 23/01/2008, tieying Liu <ti...@gmail.com> wrote:
>
> Thanks James. Yeah, it sounds great to use the OSGi bundle. I assume
> serviceMix 4 in this case. May I get an idea of how stable is the code right
> now?
The ServiceMix MicroKernel is pretty solid; the first release is
underway and its kinda near complete already really :).
We're gonna be using the MicroKernel across loads of projects so I
expect any possible issues to be ironed out very quickly. (e.g. I hope
soon the MicroKernel runs the default ActiveMQ broker, is the default
container for Camel and CXF as well as being the foundation of
ServiceMix 4 etc).
--
James
-------
http://macstrac.blogspot.com/
Open Source Integration
http://open.iona.com
Re: what is best way to manage multiple camel contexts
Posted by tieying Liu <ti...@gmail.com>.
Thanks James. Yeah, it sounds great to use the OSGi bundle. I assume
serviceMix 4 in this case. May I get an idea of how stable is the code right
now?
thanks again
James.Strachan wrote:
>
> On 23/01/2008, tieying Liu <ti...@gmail.com> 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
>
>
--
View this message in context: http://www.nabble.com/what-is-best-way-to-manage-multiple-camel-contexts-tp15047497s22882p15048076.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: what is best way to manage multiple camel contexts
Posted by James Strachan <ja...@gmail.com>.
On 23/01/2008, tieying Liu <ti...@gmail.com> 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
Re: what is best way to manage multiple camel contexts
Posted by tieying Liu <ti...@gmail.com>.
I just build from svn and seems working fine here...
what error did you get? There should be a bunch of bundles under system
folder...
Patrick Shea wrote:
>
> James, which build are you using of servicemix runtime? I'm trying
> 1.0-m2-SNAPSHOT but it's missing some bundle (aop-alliance). Even after
> adding it it goes into a bunch of cnf errors.
>
> Patrick
>
>
> -----Original Message-----
> From: James Strachan <ja...@gmail.com>
> Sent: Wednesday, January 23, 2008 11:13am
> To: camel-user@activemq.apache.org
> Subject: Re: what is best way to manage multiple camel contexts
>
> On 23/01/2008, tieying Liu <ti...@gmail.com> wrote:
>>
>> Thanks James. Yeah, it sounds great to use the OSGi bundle. I assume
>> serviceMix 4 in this case. May I get an idea of how stable is the code
>> right
>> now?
>
> The ServiceMix MicroKernel is pretty solid; the first release is
> underway and its kinda near complete already really :).
>
> We're gonna be using the MicroKernel across loads of projects so I
> expect any possible issues to be ironed out very quickly. (e.g. I hope
> soon the MicroKernel runs the default ActiveMQ broker, is the default
> container for Camel and CXF as well as being the foundation of
> ServiceMix 4 etc).
>
> --
> James
> -------
> http://macstrac.blogspot.com/
>
> Open Source Integration
> http://open.iona.com
>
>
>
>
--
View this message in context: http://www.nabble.com/what-is-best-way-to-manage-multiple-camel-contexts-tp15047497s22882p15051194.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: what is best way to manage multiple camel contexts
Posted by James Strachan <ja...@gmail.com>.
On 24/01/2008, tieying Liu <ti...@gmail.com> wrote:
>
> Hey James:
>
> What is going on with ActiveSpace? would it be a nice fit for distributed
> bundle discovery?
I'm hoping we can create some kind of distributed runtime registry of
bundles so from inside the OSGi registry you can see remote bundles
etc; am a bit side tracked with other things for a few weeks but I'd
love to have something like that in place ASAP.
--
James
-------
http://macstrac.blogspot.com/
Open Source Integration
http://open.iona.com
Re: what is best way to manage multiple camel contexts
Posted by tieying Liu <ti...@gmail.com>.
Hey James:
What is going on with ActiveSpace? would it be a nice fit for distributed
bundle discovery?
James.Strachan wrote:
>
> On 23/01/2008, Patrick Shea <pa...@ps1.net> wrote:
>> I got it to work like you did, for some reasons the snapshots on the
>> maven repo are not right. It seems that the bundles in system kept their
>> snapshot timestamps and this is why they were not found.
>
> Awesome, glad you got it working! Hopefully once the MicroKernel has a
> real release, that gets mirrored to the Apache and Maven global repos,
> things should settle down a bit & these problems should go away.
>
>
>> Anyway, this seems a *VERY* exciting project, I myself was building an
>> OSGi kernel that looked pretty much the same. The really cool thing about
>> this one is that it uses the felix obr system to resolve bundle
>> dependencies.
>>
>> WOW this is great!
>
> Agreed :) The ServiceMix MicroKernel rocks!
>
> Have you spotted it supports expanded bundle format; so you can edit
> the spring XML inside a bundle and it hot-redeploys? :). I'm really
> liking the shells too; we might wanna create some kinda Camel shell
> for running in the ServiceMix MicroKernel...
>
> --
> James
> -------
> http://macstrac.blogspot.com/
>
> Open Source Integration
> http://open.iona.com
>
>
--
View this message in context: http://www.nabble.com/what-is-best-way-to-manage-multiple-camel-contexts-tp15047497s22882p15068051.html
Sent from the Camel - Users mailing list archive at Nabble.com.