geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dain Sundstrom <>
Subject Re: Service MBeans getting attributes initialized twice
Date Fri, 05 Dec 2003 20:37:48 GMT
On Dec 4, 2003, at 12:09 AM, David Jencks wrote:

> What I'd expect to happen is that attributes whose 
> GeronimoAttributeInfo have an initial value get set from that initial 
> value when the target(s) are instantiated (which is when the 
> GeronimoMBeanInfo is copied using the "copy"-like constructor), and 
> then attribute values from the service.xml would be set in the 
> InitializeMBeanInstance.perform().
> This is obviously not ideal.  For geronimo mbeans I'd more or less 
> rather see the attribute values from service.xml set as the initial 
> values in the GeronimoAttributeInfo, and the InitializeMBeanInstance 
> step skipped.

We should not be using InitializeMBeanInstance with GeronimoMBeans.  A 
GeronimoMBean handles initializing values so the extra task is not 
needed.  This task is only for legacy mbeans ;)


View raw message