Results 1 to 2 of 2

Thread: can JMX be used for beans configuration ?

Hybrid View

  1. #1
    Join Date
    Jan 2005
    Posts
    144

    Default can JMX be used for beans configuration ?

    Hello,

    I used to configure my application using a .properties file (outside the war/ear) that can be customized and reloaded at runtime. Application beans use the commons-configuration interface to get conf datas.

    I'd like to use D.I. for those datas : use Spring to set initial value and JMX to reconfigure beans at runtime. This sounds great, but this requires to make new values persistent.

    JMX defines a "persist" property on MBeans, but I haven't found a good tutorial too understand it's use. Is there a "standard" way to use the persit capability of MBeans and can I use it as a replacement / complement to properties files ?

    Nico.

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

    Default

    This has been discussed several times on this forum (do a search for more info). Basically, Spring JMX adds the JMX layer but it is not a JMX implementation - the underlying impl. takes care of the JMX details like persist. AFAIK, mx4j nor the jdk's jmx impl. do not offer any support for the persist attribute - I think there are some commercial ones that add support for it though I'm not sure.
    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

Posting Permissions

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