<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jboss PUBLIC
      "-//JBoss//DTD JBOSS 3.2//EN"
      "http://www.jboss.org/j2ee/dtd/jboss_3_2.dtd">

<jboss>

   <enterprise-beans>
      <session>
         <ejb-name>nextgen_StatelessSession</ejb-name>
         <configuration-name>Clustered Stateless SessionBean</configuration-name>
         <invoker-bindings>
            <invoker>
               <invoker-proxy-binding-name>clustered-stateless-rmi-invoker</invoker-proxy-binding-name>
               <jndi-name>nextgen_StatelessSession</jndi-name>
            </invoker>
         </invoker-bindings>
         <clustered>true</clustered>
      </session>
      <session>
         <ejb-name>nextgen_RetryInterceptorStatelessSession</ejb-name>
         <invoker-bindings>
            <invoker>
               <invoker-proxy-binding-name>clustered-retry-stateless-rmi-invoker</invoker-proxy-binding-name>
               <jndi-name>nextgen_RetryInterceptorStatelessSession</jndi-name>
            </invoker>
         </invoker-bindings>
         <clustered>true</clustered>
      </session>
      <session>
         <ejb-name>nextgen_StatefulSession</ejb-name>
         <configuration-name>Clustered Stateful SessionBean</configuration-name>
         <invoker-bindings>
            <invoker>
               <invoker-proxy-binding-name>clustered-stateful-rmi-invoker</invoker-proxy-binding-name>
               <jndi-name>nextgen_StatefulSession</jndi-name>
            </invoker>
         </invoker-bindings>
         <clustered>true</clustered>
      </session>
      <session>
         <ejb-name>ExpiredStatefulSession</ejb-name>
         <configuration-name>Clustered Expired Stateful SessionBean</configuration-name>
         <invoker-bindings>
            <invoker>
               <invoker-proxy-binding-name>clustered-stateful-rmi-invoker</invoker-proxy-binding-name>
               <jndi-name>nextgen_ExpiredStatefulSession</jndi-name>
            </invoker>
         </invoker-bindings>
         <clustered>true</clustered>
      </session>
      <session>
         <ejb-name>nextgen_TxSession</ejb-name>
         <configuration-name>Clustered Stateless SessionBean</configuration-name>
         <invoker-bindings>
            <invoker>
               <invoker-proxy-binding-name>clustered-stateless-rmi-invoker</invoker-proxy-binding-name>
               <jndi-name>nextgen_TxSession</jndi-name>
            </invoker>
         </invoker-bindings>
         <clustered>true</clustered>
      </session>
      <entity>
         <ejb-name>nextgen_EnterpriseEntity</ejb-name>
         <configuration-name>Clustered CMP EntityBean</configuration-name>
         <invoker-bindings>
            <invoker>
               <invoker-proxy-binding-name>clustered-entity-rmi-invoker</invoker-proxy-binding-name>
               <jndi-name>nextgen_EnterpriseEntity</jndi-name>
            </invoker>
         </invoker-bindings>
         <clustered>true</clustered>
      </entity>
      <entity>
         <ejb-name>nextgen_EntityBMP</ejb-name>
         <configuration-name>Clustered BMP EntityBean</configuration-name>
         <invoker-bindings>
            <invoker>
               <invoker-proxy-binding-name>clustered-entity-rmi-invoker</invoker-proxy-binding-name>
               <jndi-name>nextgen_EntityBMP</jndi-name>
            </invoker>
         </invoker-bindings>
         <clustered>true</clustered>
      </entity>
      <entity>
         <ejb-name>nextgen_EntityPK</ejb-name>
         <configuration-name>Clustered CMP EntityBean</configuration-name>
         <invoker-bindings>
            <invoker>
               <invoker-proxy-binding-name>clustered-entity-rmi-invoker</invoker-proxy-binding-name>
               <jndi-name>nextgen_EntityPK</jndi-name>
            </invoker>
         </invoker-bindings>
         <clustered>true</clustered>
      </entity>

   </enterprise-beans>

   <invoker-proxy-bindings>
      <!-- Override default clustered invoker bindings -->
      <invoker-proxy-binding>
         <name>clustered-entity-rmi-invoker</name>
         <invoker-mbean>jboss:service=invoker,type=jrmpha</invoker-mbean>
         <proxy-factory>org.jboss.proxy.ejb.ProxyFactoryHA</proxy-factory>
         <proxy-factory-config>
            <client-interceptors>
               <home>
                  <interceptor>org.jboss.ha.framework.test.ExplicitFailoverClientInterceptor</interceptor>
                  <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.ha.framework.test.ExplicitFailoverClientInterceptor</interceptor>
                  <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>
               <list-entity>
                  <interceptor>org.jboss.ha.framework.test.ExplicitFailoverClientInterceptor</interceptor>
                  <interceptor>org.jboss.proxy.ejb.ListEntityInterceptor</interceptor>
                  <interceptor>org.jboss.proxy.SecurityInterceptor</interceptor>
                  <interceptor>org.jboss.proxy.TransactionInterceptor</interceptor>
                  <interceptor>org.jboss.invocation.InvokerInterceptor</interceptor>
               </list-entity>
            </client-interceptors>
         </proxy-factory-config>
      </invoker-proxy-binding>

      <invoker-proxy-binding>
         <name>clustered-stateless-rmi-invoker</name>
         <invoker-mbean>jboss:service=invoker,type=jrmpha</invoker-mbean>
         <proxy-factory>org.jboss.proxy.ejb.ProxyFactoryHA</proxy-factory>
         <proxy-factory-config>
            <client-interceptors>
               <home>
                  <interceptor>org.jboss.ha.framework.test.ExplicitFailoverClientInterceptor</interceptor>
                  <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.ha.framework.test.ExplicitFailoverClientInterceptor</interceptor>
                  <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-binding>
         <name>clustered-retry-stateless-rmi-invoker</name>
         <invoker-mbean>jboss:service=invoker,type=jrmpha</invoker-mbean>
         <proxy-factory>org.jboss.proxy.ejb.ProxyFactoryHA</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.proxy.ejb.RetryInterceptor</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.proxy.ejb.RetryInterceptor</interceptor>
                  <interceptor>org.jboss.invocation.InvokerInterceptor</interceptor>
               </bean>
            </client-interceptors>
         </proxy-factory-config>
      </invoker-proxy-binding>

      <invoker-proxy-binding>
         <name>clustered-stateful-rmi-invoker</name>
         <invoker-mbean>jboss:service=invoker,type=jrmpha</invoker-mbean>
         <proxy-factory>org.jboss.proxy.ejb.ProxyFactoryHA</proxy-factory>
         <proxy-factory-config>
            <client-interceptors>
               <home>
                  <interceptor>org.jboss.ha.framework.test.ExplicitFailoverClientInterceptor</interceptor>
                  <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.ha.framework.test.ExplicitFailoverClientInterceptor</interceptor>
                  <interceptor>org.jboss.proxy.ejb.StatefulSessionInterceptor</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>


   <container-configurations>
      <container-configuration>
         <container-name>Clustered CMP EntityBean</container-name>
         <call-logging>true</call-logging>
         <container-interceptors>
            <interceptor>org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor</interceptor>
            <interceptor>org.jboss.ha.framework.test.ExplicitFailoverServerInterceptor</interceptor> <!-- must be before CleanShutdown -->
            <interceptor>org.jboss.ejb.plugins.CleanShutdownInterceptor</interceptor>
            <interceptor>org.jboss.ejb.plugins.LogInterceptor</interceptor>
            <interceptor>org.jboss.ejb.plugins.SecurityInterceptor</interceptor>
            <interceptor>org.jboss.ejb.plugins.TxInterceptorCMT</interceptor>
            <interceptor>org.jboss.ejb.plugins.EntityCreationInterceptor</interceptor>
            <interceptor>org.jboss.ejb.plugins.EntityLockInterceptor</interceptor>
            <interceptor>org.jboss.ejb.plugins.EntityInstanceInterceptor</interceptor>
            <interceptor>org.jboss.ejb.plugins.EntityReentranceInterceptor</interceptor>
            <interceptor>org.jboss.resource.connectionmanager.CachedConnectionInterceptor</interceptor>
            <interceptor>org.jboss.ejb.plugins.EntitySynchronizationInterceptor</interceptor>
         </container-interceptors>
         <commit-option>A</commit-option>
      </container-configuration>

      <container-configuration>
         <container-name>Clustered Stateless SessionBean</container-name>
         <call-logging>true</call-logging>
         <container-interceptors>
            <interceptor>org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor</interceptor>
            <interceptor>org.jboss.ha.framework.test.ExplicitFailoverServerInterceptor</interceptor> <!-- must be before CleanShutdown -->
            <interceptor>org.jboss.ejb.plugins.CleanShutdownInterceptor</interceptor>
            <interceptor>org.jboss.ejb.plugins.LogInterceptor</interceptor>
            <interceptor>org.jboss.ejb.plugins.SecurityInterceptor</interceptor>
            <!-- CMT -->
            <interceptor transaction="Container">org.jboss.ejb.plugins.TxInterceptorCMT</interceptor>
            <interceptor transaction="Container" metricsEnabled="true">org.jboss.ejb.plugins.MetricsInterceptor</interceptor>
            <interceptor transaction="Container">org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor</interceptor>
            <!-- BMT -->
            <interceptor transaction="Bean">org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor</interceptor>
            <interceptor transaction="Bean">org.jboss.ejb.plugins.TxInterceptorBMT</interceptor>
            <interceptor transaction="Bean" metricsEnabled="true">org.jboss.ejb.plugins.MetricsInterceptor</interceptor>
            <interceptor>org.jboss.resource.connectionmanager.CachedConnectionInterceptor</interceptor>
         </container-interceptors>
      </container-configuration>

      <container-configuration>
         <container-name>Clustered Stateful SessionBean</container-name>
         <call-logging>true</call-logging>
         <container-interceptors>
            <interceptor>org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor</interceptor>
            <interceptor>org.jboss.ha.framework.test.ExplicitFailoverServerInterceptor</interceptor> <!-- must be before CleanShutdown -->
            <interceptor>org.jboss.ejb.plugins.CleanShutdownInterceptor</interceptor>
            <interceptor>org.jboss.ejb.plugins.LogInterceptor</interceptor>
            <!-- CMT -->
            <interceptor transaction="Container">org.jboss.ejb.plugins.TxInterceptorCMT</interceptor>
            <interceptor transaction="Container" metricsEnabled="true">org.jboss.ejb.plugins.MetricsInterceptor</interceptor>
            <interceptor transaction="Container">org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor</interceptor>
            <!-- BMT -->
            <interceptor transaction="Bean">org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor</interceptor>
            <interceptor transaction="Bean">org.jboss.ejb.plugins.TxInterceptorBMT</interceptor>
            <interceptor transaction="Bean" metricsEnabled="true">org.jboss.ejb.plugins.MetricsInterceptor</interceptor>
            <interceptor>org.jboss.ejb.plugins.SecurityInterceptor</interceptor>
            <interceptor>org.jboss.resource.connectionmanager.CachedConnectionInterceptor</interceptor>
            <interceptor>org.jboss.ejb.plugins.StatefulHASessionSynchronisationInterceptor</interceptor>
         </container-interceptors>
      </container-configuration>

      <container-configuration extends="Clustered Stateful SessionBean">
         <container-name>Clustered Expired Stateful SessionBean</container-name>
         <container-cache-conf>
            <cache-policy>org.jboss.ejb.plugins.LRUStatefulContextCachePolicy</cache-policy>
            <cache-policy-conf>
               <min-capacity>50</min-capacity>
               <max-capacity>1000000</max-capacity>
               <remover-period>5</remover-period>
               <max-bean-life>30</max-bean-life>
               <overager-period>2</overager-period>
               <max-bean-age>5</max-bean-age>
               <resizer-period>1</resizer-period>
               <max-cache-miss-period>60</max-cache-miss-period>
               <min-cache-miss-period>1</min-cache-miss-period>
               <cache-load-factor>0.75</cache-load-factor>
            </cache-policy-conf>
         </container-cache-conf>
         <cluster-config>
            <bean-load-balance-policy>org.jboss.ha.framework.interfaces.RandomRobin</bean-load-balance-policy>
         </cluster-config>
      </container-configuration>

      <container-configuration>
         <container-name>Clustered BMP EntityBean</container-name>
         <call-logging>true</call-logging>
         <container-interceptors>
            <interceptor>org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor</interceptor>
            <interceptor>org.jboss.ha.framework.test.ExplicitFailoverServerInterceptor</interceptor> <!-- must be before CleanShutdown -->
            <interceptor>org.jboss.ejb.plugins.CleanShutdownInterceptor</interceptor>
            <interceptor>org.jboss.ejb.plugins.LogInterceptor</interceptor>
            <interceptor>org.jboss.ejb.plugins.SecurityInterceptor</interceptor>
            <interceptor>org.jboss.ejb.plugins.TxInterceptorCMT</interceptor>
            <interceptor metricsEnabled="true">org.jboss.ejb.plugins.MetricsInterceptor</interceptor>
            <interceptor>org.jboss.ejb.plugins.EntityCreationInterceptor</interceptor>
            <interceptor>org.jboss.ejb.plugins.EntityLockInterceptor</interceptor>
            <interceptor>org.jboss.ejb.plugins.EntityInstanceInterceptor</interceptor>
            <interceptor>org.jboss.ejb.plugins.EntityReentranceInterceptor</interceptor>
            <interceptor>org.jboss.resource.connectionmanager.CachedConnectionInterceptor</interceptor>
            <interceptor>org.jboss.ejb.plugins.EntitySynchronizationInterceptor</interceptor>
         </container-interceptors>
         <commit-option>A</commit-option>
      </container-configuration>
   </container-configurations>

</jboss>
