You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by BERTRAND Antoine AWL-IT <an...@atos.net> on 2011/09/23 15:04:06 UTC

Bluepirnt / spring state and jmx

Hi everybody,

I'm currently using ServiceMix 4.3.1 (the fuse version) and I'm writing some little tools to monitor the status of the different installed bundles.
I want to use JMX to do that.
My point is, I can't figure out how to monitor the state of the different blueprint or spring bundle.
Have you any idea where those information are located.

Regards,
Bertrand Antoine

________________________________

Atos Worldline SA/NV - Chaussee de Haecht 1442 Haachtsesteenweg
- 1130 Brussels - Belgium
RPM-RPR Bruxelles-Brussel - TVA-BTW BE 0418.547.872
Bankrekening-Compte Bancaire-Bank Account 310-0269424-44
BIC BBRUBEBB - IBAN BE55 3100 2694 2444

"The information contained in this e-mail and any attachment thereto is confidential and may contain information which is protected by intellectual property rights.
This information is intended for the exclusive use of the recipient(s) named above.
This e-mail does not constitute any binding relationship or offer toward any of the addressees.
If you are not one of the addressees , one of their employees or a proxy holder entitled to hand over this message to the addressee(s), any use of the information contained herein (e.g. reproduction, divulgation, communication or distribution,...) is prohibited.
If you have received this message in error, please notify the sender and destroy it immediately after.
The integrity and security of this message cannot be guaranteed and it may be subject to data corruption, interception and unauthorized amendment, for which we accept no liability."

RE: Bluepirnt / spring state and jmx

Posted by BERTRAND Antoine AWL-IT <an...@atos.net>.
Hi,

Yeah I found the bundle State.
But for blueprint (for example) there are some state like "grace period" or "failed" that are not visible when I use "getBundleState".

Or is there any other way a can retrieve these information programmatically?

Regards

-----Original Message-----
From: Jean-Baptiste Onofré [mailto:jb@nanthrax.net]
Sent: Friday 23 September 2011 18:18
To: users@servicemix.apache.org
Subject: Re: Bluepirnt / spring state and jmx

Hi Bertrand,

a Blueprint or Spring bundle is an OSGi bundle by the way.

You can monitor it directly using the OSGi framework MBeans (in org.osgi).

Especially you have the state of the bundle, the location, etc.

FYI, future version of ServiceMix will use a new version of Karaf
providing new MBeans (in org.apache.karaf).

Regards
JB

On 09/23/2011 03:04 PM, BERTRAND Antoine AWL-IT wrote:
> Hi everybody,
>
> I'm currently using ServiceMix 4.3.1 (the fuse version) and I'm writing some little tools to monitor the status of the different installed bundles.
> I want to use JMX to do that.
> My point is, I can't figure out how to monitor the state of the different blueprint or spring bundle.
> Have you any idea where those information are located.
>
> Regards,
> Bertrand Antoine
>
> ________________________________
>
> Atos Worldline SA/NV - Chaussee de Haecht 1442 Haachtsesteenweg
> - 1130 Brussels - Belgium
> RPM-RPR Bruxelles-Brussel - TVA-BTW BE 0418.547.872
> Bankrekening-Compte Bancaire-Bank Account 310-0269424-44
> BIC BBRUBEBB - IBAN BE55 3100 2694 2444
>
> "The information contained in this e-mail and any attachment thereto is confidential and may contain information which is protected by intellectual property rights.
> This information is intended for the exclusive use of the recipient(s) named above.
> This e-mail does not constitute any binding relationship or offer toward any of the addressees.
> If you are not one of the addressees , one of their employees or a proxy holder entitled to hand over this message to the addressee(s), any use of the information contained herein (e.g. reproduction, divulgation, communication or distribution,...) is prohibited.
> If you have received this message in error, please notify the sender and destroy it immediately after.
> The integrity and security of this message cannot be guaranteed and it may be subject to data corruption, interception and unauthorized amendment, for which we accept no liability."
>

--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com



Atos Worldline SA/NV - Chaussee de Haecht 1442 Haachtsesteenweg
- 1130 Brussels - Belgium
RPM-RPR Bruxelles-Brussel - TVA-BTW BE 0418.547.872
Bankrekening-Compte Bancaire-Bank Account 310-0269424-44
BIC BBRUBEBB - IBAN BE55 3100 2694 2444

"The information contained in this e-mail and any attachment thereto is confidential and may contain information which is protected by intellectual property rights.
This information is intended for the exclusive use of the recipient(s) named above.
This e-mail does not constitute any binding relationship or offer toward any of the addressees.
If you are not one of the addressees , one of their employees or a proxy holder entitled to hand over this message to the addressee(s), any use of the information contained herein (e.g. reproduction, divulgation, communication or distribution,...) is prohibited.
If you have received this message in error, please notify the sender and destroy it immediately after.
The integrity and security of this message cannot be guaranteed and it may be subject to data corruption, interception and unauthorized amendment, for which we accept no liability."


Re: Bluepirnt / spring state and jmx

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Bertrand,

a Blueprint or Spring bundle is an OSGi bundle by the way.

You can monitor it directly using the OSGi framework MBeans (in org.osgi).

Especially you have the state of the bundle, the location, etc.

FYI, future version of ServiceMix will use a new version of Karaf 
providing new MBeans (in org.apache.karaf).

Regards
JB

On 09/23/2011 03:04 PM, BERTRAND Antoine AWL-IT wrote:
> Hi everybody,
>
> I'm currently using ServiceMix 4.3.1 (the fuse version) and I'm writing some little tools to monitor the status of the different installed bundles.
> I want to use JMX to do that.
> My point is, I can't figure out how to monitor the state of the different blueprint or spring bundle.
> Have you any idea where those information are located.
>
> Regards,
> Bertrand Antoine
>
> ________________________________
>
> Atos Worldline SA/NV - Chaussee de Haecht 1442 Haachtsesteenweg
> - 1130 Brussels - Belgium
> RPM-RPR Bruxelles-Brussel - TVA-BTW BE 0418.547.872
> Bankrekening-Compte Bancaire-Bank Account 310-0269424-44
> BIC BBRUBEBB - IBAN BE55 3100 2694 2444
>
> "The information contained in this e-mail and any attachment thereto is confidential and may contain information which is protected by intellectual property rights.
> This information is intended for the exclusive use of the recipient(s) named above.
> This e-mail does not constitute any binding relationship or offer toward any of the addressees.
> If you are not one of the addressees , one of their employees or a proxy holder entitled to hand over this message to the addressee(s), any use of the information contained herein (e.g. reproduction, divulgation, communication or distribution,...) is prohibited.
> If you have received this message in error, please notify the sender and destroy it immediately after.
> The integrity and security of this message cannot be guaranteed and it may be subject to data corruption, interception and unauthorized amendment, for which we accept no liability."
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com