PDA

View Full Version : Small Tutorial using Spring and JMX



bellmann29
Dec 15th, 2005, 04:05 PM
Hi all,

I wrote a small tutorial for using Spring and JMX. I have implemented a BeanInfoAssembler that reads the MBean configuration from an XML-file.
It uses MX4J as JMX-Implementation.
Please try it and post your comments here.

You can download the zipfile from :

http://home.fhtw-berlin.de/~s0503790/spring_jmx_part_one.zip

Its a working eclipse-projekt. Unzip and run the example. There are only 3 classes in this project. Some explanations are given in the pdf-file.

Costin Leau
Dec 17th, 2005, 04:36 PM
Interesting - you can also post this tutorial on the Spring WIKI and over at the Spring hub. Moreover if you want to, you can add this to the JMX configuration. Take a look at the official sample and try to adjust your sample on it - after you are done raise an issue or send an email (to Rob mainly).

fonz
Dec 20th, 2005, 06:32 AM
Very cool! - thanks bellmann29

The only annoying thing is this modelerType attribute
which is always exported by org.apache.commons.modeler.BaseModelMBean.

fonz

bellmann29
Dec 20th, 2005, 03:07 PM
Hello,

the modelerType could not switched of. I don´t like this too.
I looked the code of BaseModelMBean, the modelerType would only return the classname of the managedResource, in the sample-app "test.objects.Car" would be the modelerType.

I will add a note on this in the document that comes out with the next part of my sample-app where I will shortly explain how easy it is to add Notification-Support with commons-modeler.

Thanks for your comments.

Jörg Bellmann

PS: my girlfriend is not at home this week, so it can be that the next part come out this week :-)

suhael
Sep 28th, 2007, 03:08 PM
Where is the next part that says about notifications in JMX? Please post the same.

Regards
Suhael


Hello,

the modelerType could not switched of. I don´t like this too.
I looked the code of BaseModelMBean, the modelerType would only return the classname of the managedResource, in the sample-app "test.objects.Car" would be the modelerType.

I will add a note on this in the document that comes out with the next part of my sample-app where I will shortly explain how easy it is to add Notification-Support with commons-modeler.

Thanks for your comments.

Jörg Bellmann

PS: my girlfriend is not at home this week, so it can be that the next part come out this week :-)

Sudheesh
Jun 19th, 2008, 07:19 AM
Do anybody know SPRING WAY to persist MBEANs so that they survive server restarts?

Is there anyway to update the SPRING BEAN DEFINTION XMLs on a context shutdown based on the MBEAN RUNTIME Values?