From: Roland H. <Rol...@co...> - 2005-06-29 06:15:58
|
Hi, In MetadataMBeanInfoAssembler: protected void populateAttributeDescriptor(....) { [...] String persistPolicy = resolveStringDescriptor( gma.getPersistPolicy(), sma.getPersistPolicy(), PERSIST_POLICY_NEVER); desc.setField(FIELD_PERSIST_POLICY, persistPolicy); [...] } IMHO, if there is no 'persistPolicy' set on an JMX attribute via a ManagedAttribute annotation, the persistPolicy should be inherited from the ManagedResource annotation and *not* set to PERSIST_POLICY_NEVER by default. A solution would be not to call 'desc.setField()' if no persistPolicy is set for an attribute, since JMX will pick up the one provided for the MBean. Or am I wrong ? ciao.... -- ...roland huss consol.de |