Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

This handler provides JMX management of component instance. It could be useful to manage instance remotely. As the handler exposes MBeans, you must have a MBean server running on your platform (as the platform MBean server or the MOSGi MBean Server).

Div
classtoc
Table of Contents
maxLevel4
minLevel2
Wiki Markup
{div:class=toc} {toc:maxLevel=4|minLevel=2} {div}

Features

The handler allows to:

...

Global handler attributes

Div
classborderedTable

Attribute name

Required

Description

objectName

NO

The complete object name of the managed component. The syntax of this attribute must be compliant with the ObjectName syntax, detailed in the JMX specification.
If neither domain nor name attributes are specified, the default value is determined by the package, the type and the instance name of the component. This attribute overrides the domain and name attributes.
Example:

Wiki Markup
{div:class=borderedTable} ||Attribute name || Required || Description|| |objectName|NO|The complete object name of the managed component. The syntax of this attribute must be compliant with the ObjectName syntax, detailed in the JMX specification. If neither domain nor name attributes are specified, the default value is determined by the package, the type and the instance name of the component. This attribute overrides the domain and name attributes. _Example:_

"my.domain:type=myType,name=myName"

| |

domain

|

NO

|

The

domain

of

the

managed

object

(i.e.,

the

left

part

of

the

object

name).

This

attribute

must

be

compliant

with

the

domain

syntax,

as

described

in

the

JMX

specification.

_


Example:

_

"my.domain"

| |

name

|

NO

|

The

name

property

of

the

managed

object.

The

value

of

this

attribute

must

comply

with

the

ObjectName

value

syntax,

as

described

in

the

JMX

specification.

|

usesMOSGi

|

NO

|

Determines

if

the

component

must

be

register

on

the

MOSGi

MBean

server

or

not.

|

preRegister


postRegister


preDeregister


postDeregister

|

NO

|

These

attributes

allow

to

specify

methods

to

carry

out

operations

before

and

after

being

registered

or

unregistered

from

the

MBean

server.

| {div}

Properties attributes

Wiki Markup
{div:class=borderedTable}
||Attribute name||Required||Description||
|field|YES|The name of the component's field to expose.|
|name|NO|The name of the property as it will appear in JMX. If unspecified, the default value is the name of the exposed field.|
|rights|NO|Specify the access permission of the exposed field. The accepted values are : 
* "r" : read-only access, the default value.
* "w" : read and write access.|
|notification|NO|Enable or disable attribute change notification sending for this property. If set to "true", a notification is sent each time the value of the field changes.|
{div}

Methods attributes

Div
classborderedTable

Attribute name

Required

Description

field

YES

The name of the component's field to expose.

name

NO

The name of the property as it will appear in JMX. If unspecified, the default value is the name of the exposed field.

rights

NO

Specify the access permission of the exposed field. The accepted values are :

  • "r" : read-only access, the default value.
  • "w" : read and write access.

notification

NO

Enable or disable attribute change notification sending for this property. If set to "true", a notification is sent each time the value of the field changes.

Methods attributes

Div
classborderedTable

Attribute name

Required

Description

name

YES

The name of the method to expose. If multiple methods have the same name, all of them are exposed.

description

NO

The description of the exposed method, as it will appear in JMX.

Wiki Markup
{div:class=borderedTable} ||Attribute name||Required||Description|| |name|YES|The name of the method to expose. If multiple methods have the same name, all of them are exposed.| |description|NO|The description of the exposed method, as it will appear in JMX.| {div}

Examples

In this part, we will give you a complete example of a component managed with JMX, using the JConsole provided by the SUN JDK.

...