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

Add new 'OnUnregister' persistPolicy value to Model MBean descriptor

XMLWordPrintable

    • b55
    • sparc
    • solaris_8

      A DESCRIPTION OF THE REQUEST :
      Currently the Model MBean persistPolicy values are:

      Never
      OnUpdate
      OnTimer
      NoMoreOftenThan
      Always

      I'd like the new value "OnUnregister" to be added. This policy would specify that the store operation would be triggered once the MBean is unregistered from the MBenServer. I know one can implement this functionality by overriding the MBeanRegistration pre/postDeregister method to trigger the store. However it seems that for consistency purposes and ease of use this should be added as one of the Model MBean persitPolicy.

      JUSTIFICATION :
      There are a lot of cases, where one only wants to persist the MBean state once at the time it is no longer used.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Persist the MBean state by triggering its store method upon MBean unregistration.
      ACTUAL -
      This policy does not currently exist.

      CUSTOMER SUBMITTED WORKAROUND :
      Use pre/postDeregister methods to trigger persistence.
      ###@###.### 10/7/04 08:19 GMT

            emcmanus Eamonn McManus
            emcmanus Eamonn McManus
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: