<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE resources PUBLIC "-//GlassFish.org//DTD GlassFish Application Server 3.1 Resource Definitions//EN" "http://glassfish.org/dtds/glassfish-resources_1_5.dtd">
<resources>


    <resource-adapter-config name="QpidResourceAdapter" resource-adapter-name="qpid-ra-@rar.ver@" thread-pool-ids="thread-pool-1">
       <property name="TransactionManagerLocatorClass" value="org.apache.qpid.ra.tm.GlassfishTransactionManagerLocator"/>
       <property name="TransactionManagerLocatorMethod" value="getTm"/>
    </resource-adapter-config>

    <!--XAConnectionFactory-->
    <connector-connection-pool
        name="QpidJMSXAPool"
        resource-adapter-name="qpid-ra-@rar.ver@"
        connection-definition-name="org.apache.qpid.ra.QpidRAConnectionFactory"
        transaction-support="XATransaction"
        ping="true">
        <property name="connectionURL" value="@broker.url@"/>
        <property name="SessionDefaultType" value="javax.jms.Queue"/>
   </connector-connection-pool>

    <connector-resource jndi-name="QpidJMSXA" pool-name="QpidJMSXAPool"/>

    <!--LocalTransaction ConnectionFactory
    <connector-connection-pool
        name="QpidJMSPool"
        resource-adapter-name="qpid-ra-@rar.ver@"
        connection-definition-name="org.apache.qpid.ra.QpidRAConnectionFactory"
        transaction-support="LocalTransaction"
        ping="true">
        <property name="connectionURL" value="@broker.url@"/>
        <property name="SessionDefaultType" value="javax.jms.Queue"/>
        <property name="UseLocalTx" value="true"/>
    </connector-connection-pool>


    <connector-resource jndi-name="QpidJMS" pool-name="QpidJMSPool"/>

    -->
    <!--Destinations-->
    <admin-object-resource jndi-name="HelloQueue" res-adapter="qpid-ra-@rar.ver@" res-type="org.apache.qpid.ra.admin.QpidQueue" class-name="org.apache.qpid.ra.admin.QpidQueueImpl">
        <property name="DestinationAddress" value="@qpid.hello.queue.dest.address@"/>
    </admin-object-resource>

    <admin-object-resource jndi-name="GoodByeQueue" res-adapter="qpid-ra-@rar.ver@" res-type="org.apache.qpid.ra.admin.QpidQueue" class-name="org.apache.qpid.ra.admin.QpidQueueImpl">
        <property name="DestinationAddress" value="@qpid.goodbye.queue.dest.address@"/>
    </admin-object-resource>

    <admin-object-resource jndi-name="HelloTopic" res-adapter="qpid-ra-@rar.ver@" res-type="org.apache.qpid.ra.admin.QpidTopic" class-name="org.apache.qpid.ra.admin.QpidTopicImpl">
        <property name="DestinationAddress" value="@qpid.hello.topic.dest.address@"/>
    </admin-object-resource>

    <admin-object-resource jndi-name="GoodByeTopic" res-adapter="qpid-ra-@rar.ver@" res-type="org.apache.qpid.ra.admin.QpidTopic" class-name="org.apache.qpid.ra.admin.QpidTopicImpl">
        <property name="DestinationAddress" value="@qpid.goodbye.topic.dest.address@"/>
    </admin-object-resource>

    <!--
    <admin-object-resource jndi-name="HelloGoodByeTopic" res-adapter="qpid-ra-@rar.ver@" res-type="org.apache.qpid.ra.admin.QpidTopic" class-name="org.apache.qpid.ra.admin.QpidTopicImpl">
        <property name="DestinationAddress" value="@qpid.hellogoodbye.topic.dest.address@"/>
    </admin-object-resource>
    -->
    <admin-object-resource jndi-name="QpidRequestQueue" res-adapter="qpid-ra-@rar.ver@" res-type="org.apache.qpid.ra.admin.QpidQueue" class-name="org.apache.qpid.ra.admin.QpidQueueImpl">
        <property name="DestinationAddress" value="@qpid.request.queue.dest.address@"/>
    </admin-object-resource>

    <admin-object-resource jndi-name="QpidResponseQueue" res-adapter="qpid-ra-@rar.ver@" res-type="org.apache.qpid.ra.admin.QpidQueue" class-name="org.apache.qpid.ra.admin.QpidQueueImpl">
        <property name="DestinationAddress" value="@qpid.response.queue.dest.address@"/>
    </admin-object-resource>

    <admin-object-resource jndi-name="QpidConnectionFactory" res-adapter="qpid-ra-@rar.ver@" res-type="javax.jms.ConnectionFactory" class-name="org.apache.qpid.ra.admin.QpidConnectionFactoryProxy">
        <property name="ConnectionURL" value="@broker.url@"/>
    </admin-object-resource>

</resources>
