<ejb-jar
        xmlns="http://java.sun.com/xml/ns/javaee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
                            http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"
        version="3.0">
   
<enterprise-beans>
  <message-driven>
    <ejb-name>testmdb</ejb-name>
    <ejb-class>test.mdb.TestMDBBean</ejb-class>
         <messaging-type>javax.jms.MessageListener</messaging-type>
         <transaction-type>Container</transaction-type>
      <activation-config>
        <activation-config-property>
          <activation-config-property-name>
            DestinationType
          </activation-config-property-name>
          <activation-config-property-value>
            javax.jms.Queue
          </activation-config-property-value>
        </activation-config-property>
        <activation-config-property>
          <activation-config-property-name>
            Destination
          </activation-config-property-name>
          <activation-config-property-value>
            testqueue
          </activation-config-property-value>
        </activation-config-property>
        <activation-config-property>
          <activation-config-property-name>
            SubscriptionDurability
          </activation-config-property-name>
          <activation-config-property-value>
            Durable
          </activation-config-property-value>
        </activation-config-property>
        <activation-config-property>
          <activation-config-property-name>
            ConnectionFactoryName
          </activation-config-property-name>
          <activation-config-property-value>
            ConnectionFactory
          </activation-config-property-value>
        </activation-config-property>
        <activation-config-property>
          <activation-config-property-name>
            Transacted
          </activation-config-property-name>
          <activation-config-property-value>
            true
          </activation-config-property-value>
        </activation-config-property>
        <activation-config-property>
          <activation-config-property-name>
            Xa
          </activation-config-property-name>
          <activation-config-property-value>
            true
          </activation-config-property-value>
        </activation-config-property>
        <activation-config-property>
          <activation-config-property-name>
            DeliveryOption
          </activation-config-property-name>
          <activation-config-property-value>
            B
          </activation-config-property-value>
        </activation-config-property>
        <activation-config-property>
          <activation-config-property-name>
            MaxPoolSize
          </activation-config-property-name>
          <activation-config-property-value>
            20
          </activation-config-property-value>
        </activation-config-property>
        <activation-config-property>
          <activation-config-property-name>
            MaxMessages
          </activation-config-property-name>
          <activation-config-property-value>
            1
          </activation-config-property-value>
        </activation-config-property>
      </activation-config>
    </message-driven>
  </enterprise-beans>

</ejb-jar>
