You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by LeRoy Michel <le...@googlemail.com> on 2009/12/21 14:59:06 UTC

Component lifecycle

Hi all,

I have developed a list of component (SA : services assemblies) that I
deployed on ServiceMix 3.3.
I would like to be able to control (manage) much more my components by
adding some functions like restart(), stop().
Is it possible to know if a deployed compoent is fully operational or not ?
How can I get more information on component life cycles.

Thanks in adavance

LeRoy

Re: Component lifecycle

Posted by Gert Vanthienen <ge...@gmail.com>.
L.S.,

The easiest to programmatically manipulate the JBI runtime is by
accessing the JMX MBeans, either over RMI (for a remote connection) or
by directly grabbing the MBeanServer instance from the JBIContainer.

There are separate MBeans for every component (like servicemix-ftp,
servicemix-file, ...) and service assembly - those already have
start/stop/shutdown methods as well as a few accessors to get
information from them (e.g. using the getDescriptor() method on a SA
MBean will give you the descriptor which mentions all the service
units in the SA.  It also has a state attribute you can use to query
the current state of the SA?

Regards,

Gert Vanthienen
------------------------
Open Source SOA: http://fusesource.com
Blog: http://gertvanthienen.blogspot.com/



2009/12/21 LeRoy Michel <le...@googlemail.com>:
> Hi all,
>
> I have developed a list of component (SA : services assemblies) that I
> deployed on ServiceMix 3.3.
> I would like to be able to control (manage) much more my components by
> adding some functions like restart(), stop().
> Is it possible to know if a deployed compoent is fully operational or not ?
> How can I get more information on component life cycles.
>
> Thanks in adavance
>
> LeRoy
>