Anissa,
V3 Create/remove is not working for anything yet, including properties
<property> and <system-property> are first-class MBeans in V3.
However, you can continue to use the PropertiesAccess API (and
SystemPropertiesAccess) if you prefer.
But you can also treat properties as first-class MBeans. Among other
things, this means that changes to the "Value" Attribute will be
emitted as an AttributeChangeNotification.
public interface PropertiesAccess extends Container
{
...
/**
Return all PropertyConfig MBeans, keyed by property name.
@since Glassfish V3
*/
public Map<String,PropertyConfig> getPropertyConfigMap();
...
}
/**
Configuration for the <property> element.
*/
public interface PropertyConfig extends AnyPropertyConfig
{
/** The j2eeType as returned by {_at_link
com.sun.appserv.management.base.AMX#getJ2EEType}. */
public static final String J2EE_TYPE = XTypes.PROPERTY_CONFIG;
}
Lloyd
On Mar 20, 2008, at 12:57 PM, Anissa Lam wrote:
> Hi Lloyd,
>
> Is PropertiesAccess suppose to be working now ? I seem to have
> problem doing createProperty/removeProperty.
>
> Is this part of the general create/delete functionality in AMX that
> you are still working on ?
>
> thanks
> Anissa
---
Lloyd L Chambers
lloyd.chambers_at_sun.com
Sun Microsystems, Inc