# Providing JMX-Based Web Services with JBoss.net

While applications usually focus on the J2EE part, many technical services in JBoss are implemented according to the JMX standard (that will be a proper part of Java 1.5). JBoss.net comes with a dedicated `org.jboss.net.jmx.server.MBeanProvider` handler that uses the MBean meta-data interfaces to map Web Service invocations directly the JMX bus and targetted MBeans. MBeanProvider is able to produce appropriate WSDL descriptions of the thus exposed operations and attribute accessors.

Here is an example wsdd showing the typical parameters of the MBeanProvider.

You can use the jboss.net xdoclet module to annotate the web-service enabled mbean source code and let xdoclet generate the wsdd for you.

Similarly to the AxisInvocationHandler, a dynamic stub implementation `org.jboss.net.jmx.MBeanInvocationHandler` is provided for testing purposes, but marked deprecated.

An special MBean-based Web Service is already preinstalled through jboss-net.sar/jmx-net.wsr It hosts a `org.jboss.net.jmx.adaptor.server.RemoteAdapter` which exposes the MBeanServer functionality and typemappings for the most basic JMX structures (javax.management.ObjectName, javax.management.Attribute, etc.). For testing client-side acccess you can use, e.g., the `org.jboss.net.jmx.adaptor.RemoteAdaptor` interface and the `org.jboss.net.jmx.adaptor.RemoteAdaptorInvocationHandler` factory.

"Dr. Schorsch" (christoph.jung@jboss.org) - 2001/09/29, Last update on 2003/10/15

All mentioned trademarks on this page are copyright of their respective owners ... like that ...