Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-5108724

Add support for persistence to JMX API

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: 6
    • Fix Version/s: None
    • Component/s: core-svc
    • Labels:

      Description

      The JMX API could be extended to have standard support for persistence. Currently, the support is rudimentary, and consists of optional support in Model MBeans for load() and store() methods. The way these methods work is not specified, and the Reference Implementation does not include this optional functionality.

      A couple of possibilities exist in this area:

      (1) Provide a way to take a snapshot of all MBeans or some subset of MBeans in an MBean Server and write it to a file, in such a way that the MBeans can be recreated subsequently. One possibility would be to use MLets here. The file written out could be an MLet text file that when given to the MLet service would reconstruct the MBeans. The constructor parameters for each MBean in the MLet file could contain the information needed to reconstruct, and/or the MLet format could be extended to allow additional operations like setAttribute calls to be specified on reconstruction.

      (2) Provide a way to define an MBean that is backed by an XML configuration file. Each configuration item in the file is translated into an attribute of the same name and appropriate type in the MBean. Reading the attribute reflects the value currently stored in the file. Writing the attribute updates the file, or perhaps there need to be explicit load() and save() operations (already defined by the PersistentMBean interface) to cause the file to be read or written.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                emcmanus Eamonn McManus
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: