<?xml version="1.0"?>

<!-- The jboss.xml descriptor for the jrmp-comp.jar ejb unit -->
<jboss>
   <invoker-proxy-bindings>
     <invoker-proxy-binding>
       <name>entity-compression-invoker</name>
       <invoker-mbean>jboss:service=invoker,type=jrmp,socketType=CompressionSocketFactory</invoker-mbean>
       <proxy-factory>org.jboss.proxy.ejb.ProxyFactory</proxy-factory>
       <proxy-factory-config>
	 <client-interceptors>
           <home>
             <interceptor>org.jboss.proxy.ejb.HomeInterceptor</interceptor>
             <interceptor>org.jboss.proxy.SecurityInterceptor</interceptor>
             <interceptor>org.jboss.proxy.TransactionInterceptor</interceptor>
             <interceptor>org.jboss.invocation.InvokerInterceptor</interceptor>
           </home>
           <bean>
             <interceptor>org.jboss.proxy.ejb.EntityInterceptor</interceptor>
             <interceptor>org.jboss.proxy.SecurityInterceptor</interceptor>
             <interceptor>org.jboss.proxy.TransactionInterceptor</interceptor>
             <interceptor>org.jboss.invocation.InvokerInterceptor</interceptor>
           </bean>
	 </client-interceptors>
       </proxy-factory-config>
     </invoker-proxy-binding>
     <invoker-proxy-binding>
       <name>stateless-compression-invoker</name>
       <invoker-mbean>jboss:service=invoker,type=jrmp,socketType=CompressionSocketFactory</invoker-mbean>
       <proxy-factory>org.jboss.proxy.ejb.ProxyFactory</proxy-factory>
       <proxy-factory-config>
	 <client-interceptors>
           <home>
             <interceptor>org.jboss.proxy.ejb.HomeInterceptor</interceptor>
             <interceptor>org.jboss.proxy.SecurityInterceptor</interceptor>
             <interceptor>org.jboss.proxy.TransactionInterceptor</interceptor>
             <interceptor>org.jboss.invocation.InvokerInterceptor</interceptor>
           </home>
           <bean>
             <interceptor>org.jboss.proxy.ejb.StatelessSessionInterceptor</interceptor>
             <interceptor>org.jboss.proxy.SecurityInterceptor</interceptor>
             <interceptor>org.jboss.proxy.TransactionInterceptor</interceptor>
             <interceptor>org.jboss.invocation.InvokerInterceptor</interceptor>
           </bean>
	 </client-interceptors>
       </proxy-factory-config>
     </invoker-proxy-binding>
   </invoker-proxy-bindings>
   <enterprise-beans>
        <entity>
            <ejb-name>SimpleBMP</ejb-name>
	    <invoker-bindings>
	      <invoker>
	        <invoker-proxy-binding-name>entity-compression-invoker</invoker-proxy-binding-name>
		<jndi-name>CompressionSimpleBMP</jndi-name>
	      </invoker>
	      <invoker>
	        <invoker-proxy-binding-name>entity-rmi-invoker</invoker-proxy-binding-name>
		<jndi-name>SimpleBMP</jndi-name>
	      </invoker>
	    </invoker-bindings>
        </entity>
        <session>
            <ejb-name>StatelessSession</ejb-name>
	    <invoker-bindings>
	      <invoker>
	        <invoker-proxy-binding-name>stateless-compression-invoker</invoker-proxy-binding-name>
		<jndi-name>CompressionStatelessSession</jndi-name>
		<ejb-ref>
		  <ejb-ref-name>ejb/SimpleBMP</ejb-ref-name>
		  <jndi-name>CompressionSimpleBMP</jndi-name>
		</ejb-ref>
	      </invoker>
	      <invoker>
	        <invoker-proxy-binding-name>stateless-rmi-invoker</invoker-proxy-binding-name>
		<jndi-name>StatelessSession</jndi-name>
		<ejb-ref>
		  <ejb-ref-name>ejb/SimpleBMP</ejb-ref-name>
		  <jndi-name>SimpleBMP</jndi-name>
		</ejb-ref>
	      </invoker>
	    </invoker-bindings>
        </session>
   </enterprise-beans>
</jboss>
