<config>
    <extension-module>org.jboss.as.connector</extension-module>
    <subsystem xmlns="urn:jboss:domain:datasources:4.0">
        <datasources>
            <datasource jndi-name="java:jboss/datasources/ExampleDS" pool-name="ExampleDS" enabled="true" use-java-context="true">
                <connection-url>jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE</connection-url>
                <driver>h2</driver>
                <security>
                    <user-name>sa</user-name>
                    <password>sa</password>
                </security>
            </datasource>
            <drivers>
                <driver name="h2" module="com.h2database.h2">
                    <xa-datasource-class>org.h2.jdbcx.JdbcDataSource</xa-datasource-class>
                </driver>
                <driver name="teiid-local" module="org.jboss.teiid">
                    <driver-class>org.teiid.jdbc.TeiidDriver</driver-class>
                    <xa-datasource-class>org.teiid.jdbc.TeiidDataSource</xa-datasource-class>
                </driver>
                <driver name="teiid" module="org.jboss.teiid.client">
                    <driver-class>org.teiid.jdbc.TeiidDriver</driver-class>
                    <xa-datasource-class>org.teiid.jdbc.TeiidDataSource</xa-datasource-class>
                </driver> 
            </drivers>
        </datasources>
    </subsystem>
</config>