O'Reilly logo

JBoss AS 5 Development by Francesco Marchioni

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Developing MBeans

As we have mentioned, MBeans are typed components composed by an implementation class and a management interface that is exposed to external applications. As per JMX specifications, standard MBeans do not require implementing any server-specific interface. However, if you want to fully use the JBoss MBeans capabilities, you are strongly encouraged to write MBeans using JBoss service pattern.

Writing JBoss-style MBeans requires implementing the ServiceMBean interface and extending the ServiceMBeanSupport base class that provides a set of life cycle operations. The notifications inform an MBean service when it can create, start, stop, and destroy itself.

For example, if you are writing an MBean that needs a JNDI naming service ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required