<?xml version="1.0" ?>
<!--
  ~ Copyright The WildFly Authors
  ~ SPDX-License-Identifier: Apache-2.0
  -->

<layer-spec xmlns="urn:jboss:galleon:layer-spec:2.0" name="h2-datasource">
    <props>
        <prop name="org.wildfly.rule.add-on" value="database,h2-database"/>
        <prop name="org.wildfly.rule.add-on-depends-on" value="only:datasources"/>
        <prop name="org.wildfly.rule.bring-datasource" value="java:jboss/datasources/ExampleDS"/>
        <prop name="org.wildfly.rule.xml-path" value="[/WEB-INF/classes/META-INF/persistence.xml,/META-INF/persistence.xml],/persistence/persistence-unit/jta-data-source,java:jboss/datasources/ExampleDS"/>
        <prop name="org.wildfly.rule.add-on-description" value="Support for an H2 datasource."/>
    </props>
    <dependencies>
        <layer name="datasources"/>
        <layer name="h2-driver"/>
    </dependencies>
    <feature-group name="h2-datasource"/>
</layer-spec>