-
Enhancement
-
Resolution: Fixed
-
P4
-
6
-
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
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
- relates to
-
JDK-5072268 Suggested API changes for JMX 2.0
-
- Closed
-