<?xml version="1.0" encoding="UTF-8"?>

<!-- $Id: jboss-service.xml,v 1.1.2.6 2003/10/05 23:49:29 starksm Exp $ -->
<server>

   <!-- The JRMP invoker proxy configuration for the InvokerAdaptorService -->
   <mbean code="org.jboss.invocation.jrmp.server.JRMPProxyFactory"
      name="jboss.jmx:type=adaptor,name=Invoker,protocol=jrmp,service=proxyFactory">
      <!-- Use the standard JRMPInvoker from conf/jboss-service.xxml -->
      <attribute name="InvokerName">jboss:service=invoker,type=jrmp</attribute>
      <!-- The target MBean is the InvokerAdaptorService configured below -->
      <attribute name="TargetName">jboss.jmx:type=adaptor,name=Invoker</attribute>
      <!-- Where to bind the RMIAdaptor proxy -->
      <attribute name="JndiName">jmx/invoker/RMIAdaptor</attribute>
      <!-- The RMI compabitle MBeanServer interface -->
      <attribute name="ExportedInterface">org.jboss.jmx.adaptor.rmi.RMIAdaptor</attribute>
      <attribute name="ClientInterceptors">
          <interceptors>
             <interceptor>org.jboss.proxy.ClientMethodInterceptor</interceptor>
             <interceptor>org.jboss.proxy.SecurityInterceptor</interceptor>
             <interceptor>org.jboss.jmx.connector.invoker.client.InvokerAdaptorClientInterceptor</interceptor>
             <interceptor>org.jboss.invocation.InvokerInterceptor</interceptor>
          </interceptors>
      </attribute>
      <depends>jboss:service=invoker,type=jrmp</depends>
   </mbean>

   <!-- Create a mapping from the legacy jmx-rmi-adaptor.sar binding to the
   jmx-invoker-adaptor-server.sar JndiName specified above for backwards
   portability.
   -->
   <mbean code="org.jboss.naming.NamingAlias" name="jboss.jmx:alias=jmx/rmi/RMIAdaptor">
      <attribute name="FromName">jmx/rmi/RMIAdaptor</attribute>
      <attribute name="ToName">jmx/invoker/RMIAdaptor</attribute>
   </mbean>

   <!-- This is the service that handles the RMIAdaptor invocations by routing
   them to the MBeanServer the service is deployed under.  -->
   <mbean code="org.jboss.jmx.connector.invoker.InvokerAdaptorService"
          name="jboss.jmx:type=adaptor,name=Invoker">
      <attribute name="ExportedInterface">org.jboss.jmx.adaptor.rmi.RMIAdaptor</attribute>
   </mbean>

</server>
