Results 1 to 6 of 6

Thread: Small Tutorial using Spring and JMX

  1. #1

    Default Small Tutorial using Spring and JMX

    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...x_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.

  2. #2
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    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).
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

  3. #3
    Join Date
    Feb 2005
    Posts
    17

    Thumbs up

    Very cool! - thanks bellmann29

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

    fonz

  4. #4

    Default Annoying modelerType

    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 :-)

  5. #5
    Join Date
    Sep 2007
    Posts
    1

    Default about notifications thru JMX

    Where is the next part that says about notifications in JMX? Please post the same.

    Regards
    Suhael

    Quote Originally Posted by bellmann29 View Post
    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 :-)

  6. #6

    Default

    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?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •