Configure the Resource Adapter

Edit "standalone/configuration/standalone.xml". Add the resource adapter configuration (The "debugMode" property should be switched off in production, all other resource adapter properties can be overwritten here):

    <subsystem xmlns="urn:jboss:domain:resource-adapters:1.0">
        <resource-adapters>
            <resource-adapter>
                <archive>
                    swiftmq_jca16.rar
                </archive>
                <transaction-support>XATransaction</transaction-support>
                <config-property name="debugMode">
                    true
                </config-property>
                <connection-definitions>
                    <connection-definition
                            class-name="com.swiftmq.connector.v16.outbound.ManagedConnectionFactoryImpl"
                            jndi-name="swiftmq/CF"
                            pool-name="SwiftMQConnectionFactoryPool">
                        <security>
                            <application/>
                        </security>
                    </connection-definition>
                </connection-definitions>
                <admin-objects>
                    <admin-object class-name="com.swiftmq.jms.QueueImpl"
                                  jndi-name="swiftmq/testqueue3"
                                  pool-name="testqueue3">
                        <config-property name="queueName">
                            testqueue3@router1
                        </config-property>
                    </admin-object>
                </admin-objects>
            </resource-adapter>
        </resource-adapters>
    </subsystem>

Under "urn:jboss:domain:ejb3:1.3" add:

    <subsystem xmlns="urn:jboss:domain:ejb3:1.3">
         ...
         <mdb>
            <resource-adapter-ref resource-adapter-name="swiftmq_jca16.rar"/>
            <bean-instance-pool-ref pool-name="mdb-strict-max-pool"/>
         </mdb>
         ...
    </subsystem>