<h1>Providing JMX-Based Web Services with JBoss.net</h1>

<p> <img SRC="../../../../../modules/html/developers/guides/jboss.net/jboss-net.png" align=LEFT>
While applications usually focus on the J2EE part, many technical services in JBoss are implemented according to the 
<a href="http://jcp.org/aboutJava/communityprocess/final/jsr003/">JMX standard</a> (that will be a proper part
of Java 1.5). JBoss.net comes with a dedicated <code>org.jboss.net.jmx.server.MBeanProvider</code>
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.</p>

<p> <cite>Here is an <a href="../../../../../modules/html/developers/guides/jboss.net/jmx-web-service.xml">example wsdd</a> showing the
typical parameters of the MBeanProvider.</cite></p>

<p>You can use the <a href="../../..//developers/guides/jboss.net/xdoclet">jboss.net xdoclet module</a> to annotate the
web-service enabled mbean source code and let xdoclet generate the wsdd for you. </p>

<p> 
Similarly to the <a href="../../../developers/guides/jboss.net/deployment">AxisInvocationHandler</a>, a dynamic stub implementation
<code>org.jboss.net.jmx.MBeanInvocationHandler</code> is provided for testing purposes, but marked deprecated.</p>

<p> 
An special MBean-based Web Service is already preinstalled through jboss-net.sar/jmx-net.wsr 
It hosts a <code>org.jboss.net.jmx.adaptor.server.RemoteAdapter</code> 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 <code>org.jboss.net.jmx.adaptor.RemoteAdaptor</code> interface and 
the <code>org.jboss.net.jmx.adaptor.RemoteAdaptorInvocationHandler</code> factory. 
</p>

<p>"Dr. Schorsch" (<a ref="mailto:christoph.Jung@jboss.org">christoph.jung@jboss.org</a>) - 2001/09/29, Last update on 2003/10/15</p>

<p><small>All mentioned trademarks on this page are 
copyright of their respective owners ... like that ... </small></p>

