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

<server>
    <mbean code="org.jboss.security.plugins.JaasSecurityDomain"
           name="jboss.security:service=JaasSecurityDomain,domain=RMI+SSL">
        <constructor>
            <arg type="java.lang.String" value="RMI+SSL"/>
        </constructor>
        <attribute name="KeyStoreURL">example.keystore</attribute>
        <attribute name="KeyStorePass">rmi+ssl</attribute>
    </mbean>

    <mbean code="org.jboss.invocation.jrmp.server.JRMPInvoker" 
           name="jboss:service=invoker,type=jrmp,socketType=SSL">
        <attribute name="RMIObjectPort">14445</attribute>
        <attribute name="RMIClientSocketFactory">
            org.jboss.security.ssl.RMISSLClientSocketFactory
        </attribute>
        <attribute name="RMIServerSocketFactory">
            org.jboss.security.ssl.RMISSLServerSocketFactory
        </attribute>
        <attribute name="SecurityDomain">java:/jaas/RMI+SSL</attribute>
        <depends>jboss.security:service=JaasSecurityDomain,domain=RMI+SSL</depends>
    </mbean>
</server>
