Sun GlassFish Enterprise Server 2.1 Administration Reference

mbean

Specifies an MBean, which implements the javax.management.NotificationListener interface.

Superelements

applications

Subelements

The following table describes subelements for the mbean element.

Table 1–122 mbean Subelements

Element 

Required 

Description 

description

zero or one 

Contains a text description of this element. 

property

zero or more 

Specifies a property. Property subelements of the mbean element store the names and values of attributes defined in the MBean implementation class.

Attributes

The following table describes attributes for the mbean element.

Table 1–123 mbean Attributes

Attribute 

Default 

Description 

name

value of impl-class-name

The name of the MBean. The name must represent a value of a property in the property-list of an MBean ObjectName. The name is a primary key for the MBean. This is read-only.

object-type

user

(optional) Defines the type of the resource. This is read-only. Allowed values are: 

  • system-all - A system resource for all server instances and the domain application server.

  • system-admin - A system resource only for the domain application server.

  • system-instance - A system resource for all server instances only.

  • user - A user resource.

impl-class-name

none 

Defines the fully qualified class name of the MBean implementation. This is read-only. 

object-name

none 

Defines a system-generated object name for this MBean. This is read-only. 

enabled

true

(optional) Determines whether the MBean is enabled. If false, the MBean is not registered in the runtime environment even if the reference is enabled.