<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ JBoss, Home of Professional Open Source.
  ~ Copyright 2011, Red Hat, Inc., and individual contributors
  ~ as indicated by the @author tags. See the copyright.txt file in the
  ~ distribution for a full listing of individual contributors.
  ~
  ~ This is free software; you can redistribute it and/or modify it
  ~ under the terms of the GNU Lesser General Public License as
  ~ published by the Free Software Foundation; either version 2.1 of
  ~ the License, or (at your option) any later version.
  ~
  ~ This software is distributed in the hope that it will be useful,
  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  ~ Lesser General Public License for more details.
  ~
  ~ You should have received a copy of the GNU Lesser General Public
  ~ License along with this software; if not, write to the Free
  ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  -->
<module name="org.jboss.xts" xmlns="urn:jboss:module:1.9">

    <properties>
        <property name="jboss.api" value="deprecated"/>
    </properties>

    <resources>
        <artifact name="org.jboss.narayana.xts:jbossxts:5.12.0.Final"/>
        <artifact name="org.jboss.narayana:jbosstxbridge:5.12.0.Final"/>
    </resources>

    <dependencies>
        <module name="java.logging"/>
        <module name="java.rmi"/>

        <module name="org.jboss.jts"/>

        <module name="javax.transaction.api"/>
        <module name="javax.resource.api"/>
        <module name="javax.enterprise.api"/>

        <module name="org.jboss.ws.api" services="export"/>
        <module name="org.jboss.ws.jaxws-client" services="export"/>
        <module name="org.jboss.ws.cxf.jbossws-cxf-client" services="export"/>
        <module name="javax.xml.soap.api"/>
        <module name="javax.xml.ws.api"/>
        <module name="javax.xml.stream.api"/>

        <!-- this is needed to get javax.xml.namespace.QName but it would be better if it were exposed on its own -->
        <!--WFLY-14219 Remove deprecated <module name="javax.api"/> -->
        <!-- this is needed because our endpoints are not in a normal deployment and we need to be able
            to resolve the javax.jws.WebService annotation attached to them. presumably an endpoint
            found in a deployment gets this package auto-added to its module loader
            -->
        <module name="javax.jws.api"/>
        <!-- this is needed to ensure @Resource annotations on the JaxWS endpoint classes are in the
             classloader scope-->
        <module name="javax.annotation.api"/>
        <!-- this is needed to ensure the JaxWS endpoint classes canb refer to HttpServletRequest etc -->
        <module name="javax.servlet.api"/>
        <module name="org.jboss.weld.core"/>
        <module name="org.jboss.logging"/>
        <module name="org.jboss.narayana.compensations" export="true"/>
        <module name="org.jboss.narayana.txframework" export="true"/>
        <module name="javax.annotation.api" export="true"/>
        <module name="javax.interceptor.api" export="true"/>

        <!-- This dependency is required only if the
             xts subsystem is present. If it is the
             subsystem may configure the deployment such
             that this module will need to use classes from
             the subsystem module.-->
        <module name="org.jboss.as.xts" export="true" optional="true">
          <imports>
            <include path="org.jboss.as.xts.txnclient"/>
          </imports>
        </module>
        <module name="java.xml"/>
    </dependencies>
</module>
