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

  <!DOCTYPE jboss PUBLIC
      "-//JBoss//DTD JBOSS 4.0//EN"
      "http://www.jboss.org/j2ee/dtd/jboss_4_0.dtd">

<jboss>
   <jmx-name>activemq.rar:name=iTests</jmx-name>
   <enterprise-beans>

      <session>
         <ejb-name>SenderEJB</ejb-name>
         <resource-ref>
            <res-ref-name>jms/MyQueueConnectionFactory</res-ref-name>
            <resource-name>queuefactoryref</resource-name>
         </resource-ref>
      </session>

      <message-driven>
         <ejb-name>QueueListenerMDB</ejb-name>
         <resource-adapter-name>activemq-ra-3.1-SNAPSHOT.rar</resource-adapter-name>
         <configuration-name>ActiveMQ Message Driven Bean</configuration-name>
      </message-driven>

      <message-driven>
         <ejb-name>TopicNonDurableMDB</ejb-name>
         <resource-adapter-name>activemq-ra-3.1-SNAPSHOT.rar</resource-adapter-name>
         <configuration-name>ActiveMQ Message Driven Bean</configuration-name>
      </message-driven>

      <message-driven>
         <ejb-name>TopicDurableMDB</ejb-name>
         <resource-adapter-name>activemq-ra-3.1-SNAPSHOT.rar</resource-adapter-name>
         <configuration-name>ActiveMQ Message Driven Bean</configuration-name>
      </message-driven>

   </enterprise-beans>

   <assembly-descriptor>
      <message-destination>
         <message-destination-name>LoggingQueue</message-destination-name>
         <jndi-name>activemq/queue/outbound</jndi-name>
      </message-destination>
   </assembly-descriptor>

   <resource-managers>
      <resource-manager>
         <res-name>queuefactoryref</res-name>
         <res-jndi-name>java:/activemq/QueueConnectionFactory</res-jndi-name>
      </resource-manager>
      <resource-manager>
         <res-name>topicfactoryref</res-name>
         <res-jndi-name>java:/activemq/TopicConnectionFactory</res-jndi-name>
      </resource-manager>
   </resource-managers>

   <invoker-proxy-bindings>
      <invoker-proxy-binding>
         <name>activemq-message-driven-bean</name>
         <invoker-mbean>default</invoker-mbean>
         <proxy-factory>org.jboss.ejb.plugins.inflow.JBossMessageEndpointFactory</proxy-factory>
         <proxy-factory-config>
            <endpoint-interceptors>
               <interceptor>org.jboss.proxy.ClientMethodInterceptor</interceptor>
               <interceptor>org.jboss.ejb.plugins.inflow.MessageEndpointInterceptor</interceptor>
               <interceptor>org.jboss.proxy.TransactionInterceptor</interceptor>
               <interceptor>org.jboss.invocation.InvokerInterceptor</interceptor>
            </endpoint-interceptors>
         </proxy-factory-config>
      </invoker-proxy-binding>
   </invoker-proxy-bindings>

   <container-configurations>
      <container-configuration>
         <container-name>ActiveMQ Message Driven Bean</container-name>
         <call-logging>false</call-logging>
         <invoker-proxy-binding-name>activemq-message-driven-bean</invoker-proxy-binding-name>
         <container-interceptors>
            <interceptor>org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor</interceptor>
            <interceptor>org.jboss.ejb.plugins.LogInterceptor</interceptor>
            <interceptor>org.jboss.ejb.plugins.RunAsSecurityInterceptor</interceptor>
            <!-- CMT -->
            <interceptor transaction="Container">org.jboss.ejb.plugins.TxInterceptorCMT</interceptor>
            <interceptor transaction="Container">org.jboss.ejb.plugins.CallValidationInterceptor</interceptor>
            <interceptor transaction="Container" metricsEnabled="true">org.jboss.ejb.plugins.MetricsInterceptor</interceptor>
            <interceptor transaction="Container">org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor</interceptor>
            <!-- BMT -->
            <interceptor transaction="Bean">org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor</interceptor>
            <interceptor transaction="Bean">org.jboss.ejb.plugins.MessageDrivenTxInterceptorBMT</interceptor>
            <interceptor transaction="Bean">org.jboss.ejb.plugins.CallValidationInterceptor</interceptor>
            <interceptor transaction="Bean" metricsEnabled="true">org.jboss.ejb.plugins.MetricsInterceptor</interceptor>
            <interceptor>org.jboss.resource.connectionmanager.CachedConnectionInterceptor</interceptor>
         </container-interceptors>
         <instance-pool>org.jboss.ejb.plugins.MessageDrivenInstancePool</instance-pool>
         <instance-cache></instance-cache>
         <persistence-manager></persistence-manager>
         <container-pool-conf>
            <MaximumSize>100</MaximumSize>
         </container-pool-conf>
      </container-configuration>
   </container-configurations>
</jboss>
 