summaryrefslogtreecommitdiff
path: root/java/jca/example/qpid-jca-example-properties.xml
blob: ab0f6267bad7d7983badc8c7c5dddc2305d26376 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!--
 -
 - Licensed to the Apache Software Foundation (ASF) under one
 - or more contributor license agreements.  See the NOTICE file
 - distributed with this work for additional information
 - regarding copyright ownership.  The ASF licenses this file
 - to you under the Apache License, Version 2.0 (the
 - "License"); you may not use this file except in compliance
 - with the License.  You may obtain a copy of the License at
 -
 -   http://www.apache.org/licenses/LICENSE-2.0
 -
 - Unless required by applicable law or agreed to in writing,
 - software distributed under the License is distributed on an
 - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 - KIND, either express or implied.  See the License for the
 - specific language governing permissions and limitations
 - under the License.
 -
 -->
<project name="qpid-jca-example-properties" basedir="." default="">

    <property name="src.dir" location="${basedir}/src/main/java"/>
    <property name="lib.dir" location="${basedir}/lib"/>
    <property name="conf.dir" location="${basedir}/conf"/>
    <property name="build.dir" location="${basedir}/build"/>
    <property name="build.classes.dir" location="${build.dir}/classes"/>
    <property name="gen.dir" location="${build.dir}/gen"/>
    <property name="log.dir" location="${build.dir}/log"/>
    <property name="qpid.jca.dir" location="${env.QPID_JCA_HOME}"/>

    <property name="ejb.name" value="qpid-jcaex-ejb.jar"/>
    <property name="war.name" value="qpid-jcaex-web.war"/>
    <property name="ear.name" value="qpid-jcaex.ear"/>

    <property name="rar.ver" value="${qpid.ver}"/>
    <property name="rar.name" value="qpid-ra-${rar.ver}.rar"/>

    <property name="broker.url" value="amqp://anonymous:passwd@client/test?brokerlist='tcp://${broker.address}?sasl_mechs='PLAIN''"/>

    <property name="qpid.hello.topic.dest.address.ADDR" value="amq.topic/hello.Topic"/>
    <property name="qpid.goodbye.topic.dest.address.ADDR" value="amq.topic/goodbye.Topic"/>
    <property name="qpid.hellogoodbye.topic.dest.address.ADDR" value="amq.topic/goodbye.Topic"/>
    <property name="qpid.hello.queue.dest.address.ADDR"
         value="hello.Queue;{create:always, node:{type:queue, x-declare:{auto-delete:true}}}"/>
    <property name="qpid.goodbye.queue.dest.address.ADDR"
         value="goodbye.Queue;{create:always, node:{type:queue, x-declare:{auto-delete:true}}}"/>
    <property name="qpid.request.queue.dest.address.ADDR"
         value="request.Queue;{create:always, node:{type:queue, x-declare:{auto-delete:true}}}"/>
    <property name="qpid.response.queue.dest.address.ADDR"
         value="response.Queue;{create:always, node:{type:queue, x-declare:{auto-delete:false}}}"/>

    <property name="qpid.hello.topic.dest.address.BURL"
            value="BURL:topic://amq.topic//hello.jcaTopic?routingKey='hello.jcaTopic',autodelete='true'"/>
    <property name="qpid.goodbye.topic.dest.address.BURL"
            value="BURL:topic://amq.topic//goodbye.jcaTopic?routingKey='goodbye.jcaTopic',autodelete='true'"/>
    <property name="qpid.hellogoodbye.topic.dest.address.BURL"
           value="BURL:topic://amq.topic//#.jcaTopic"/>
    <property name="qpid.hello.queue.dest.address.BURL"
           value="BURL:direct://amq.direct//hello.Queue?routingkey='hello.Queue'"/>
    <property name="qpid.goodbye.queue.dest.address.BURL"
           value="BURL:direct://amq.direct//goodbye.Queue?routingkey='goodbye.Queue'"/>
    <property name="qpid.request.queue.dest.address.BURL"
           value="BURL:direct://amq.direct//request.Queue?routingkey='request.Queue'"/>
    <property name="qpid.response.queue.dest.address.BURL"
           value="BURL:direct://amq.direct//response.Queue?routingkey='response.Queue'"/>

    <!-- This macro allows us to construct a property name which contains a property expansion -->
    <macrodef name="set-address-property">
        <attribute name="name"/>
        <attribute name="syntax"/>
        <sequential>
            <property name="@{name}" value="${@{name}.@{syntax}}"/>
        </sequential>
    </macrodef>

    <set-address-property name="qpid.hello.topic.dest.address" syntax="${qpid.dest_syntax}"/>
    <set-address-property name="qpid.goodbye.topic.dest.address" syntax="${qpid.dest_syntax}"/>
    <set-address-property name="qpid.hellogoodbye.topic.dest.address" syntax="${qpid.dest_syntax}"/>
    <set-address-property name="qpid.hello.queue.dest.address" syntax="${qpid.dest_syntax}"/>
    <set-address-property name="qpid.goodbye.queue.dest.address" syntax="${qpid.dest_syntax}"/>
    <set-address-property name="qpid.request.queue.dest.address" syntax="${qpid.dest_syntax}"/>
    <set-address-property name="qpid.response.queue.dest.address" syntax="${qpid.dest_syntax}"/>
</project>