summaryrefslogtreecommitdiff
path: root/java/jca/example/build-jboss7-properties.xml
blob: 68ecd8a4f4f0b89a28d11e51a4f9ea82bad0984f (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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<!--
 -
 - 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-jboss7-properties" basedir="." default="">

    <property name="jndi.scheme" value="name"/>
    <property name="jndi.prefix" value=""/>

    <property name="qpid.xacf.jndi.name" value="java:/QpidJMSXA"/>
    <property name="qpid.cf.jndi.name" value="QpidConnectionFactory"/>
    <property name="qpid.hello.topic.jndi.name" value="java:jboss/exported/HelloTopic"/>
    <property name="qpid.goodbye.topic.jndi.name" value="java:jboss/exported/GoodByeTopic"/>
    <property name="qpid.hello.queue.jndi.name" value="java:jboss/exported/HelloQueue"/>
    <property name="qpid.goodbye.queue.jndi.name" value="java:jboss/exported/GoodByeQueue"/>
    <property name="qpid.request.queue.jndi.name" value="java:jboss/exported/QpidRequestQueue"/>
    <property name="qpid.response.queue.jndi.name" value="java:jboss/exported/QpidResponseQueue"/>

    <property name="qpid.ejb.jndi.name" value="mappedName=&quot;QpidTestEJB&quot;"/>
    <property name="qpid.ejb.ref.name" value="QpidTestBean/local"/>
    <property name="qpid.ejb.name" value="ejb:qpid-jcaex/qpid-jcaex-ejb/QpidTestBean!org.apache.qpid.jca.example.ejb.QpidTestRemote"/>

    <property name="qpid.client.cf.jndi.name" value="${jndi.prefix}/QpidConnectionFactory"/>
    <property name="qpid.client.dest.jndi.name" value="${jndi.prefix}/HelloQueue"/>
    <property name="jndi.context" value="org.jboss.naming.remote.client.InitialContextFactory"/>
    <property name="server.host" value="remote://localhost:4447"/>


    <property name="jboss.server.config" value="standalone"/>

    <property name="jboss.home" location="${env.JBOSS_HOME}"/>
    <property name="jboss.server" value="${jboss.server.config}"/>
    <property name="jboss.deploy" location="${jboss.home}/${jboss.server}/deployments"/>
    <property name="jboss.modules" location="${jboss.home}/modules"/>
    <property name="jboss.config.dir" location="${jboss.home}/${jboss.server}/configuration/"/>
    <property name="jboss.client" location="${jboss.home}/bin/client"/>

    <path id="compile.classpath">
        <fileset dir="${jboss.modules}/javax/jms/api/main">
            <include name="jboss-jms-api_1.1_spec-1.0.1.Final.jar"/>
        </fileset>
        <fileset dir="${jboss.modules}/javax/ejb/api/main">
            <include name="jboss-ejb-api_3.1_spec-1.0.2.Final.jar"/>
        </fileset>
        <fileset dir="${jboss.modules}/javax/servlet/api/main">
            <include name="jboss-servlet-api_3.0_spec-1.0.1.Final.jar"/>
        </fileset>
        <fileset dir="${jboss.modules}/javax/transaction/api/main">
            <include name="jboss-transaction-api_1.1_spec-1.0.1.Final.jar"/>
        </fileset>
        <fileset dir="${jboss.modules}/org/slf4j/main">
            <include name="slf4j-api-1.6.1.jar"/>
        </fileset>
    </path>

    <path id="run.classpath">
        <fileset dir="${jboss.client}">
            <include name="jboss-client.jar"/>
        </fileset>
        <fileset dir="${lib.dir}">
            <include name="qpid-ra-*.jar"/>
            <include name="qpid-client-*.jar"/>
            <include name="qpid-common-*.jar"/>
        </fileset>
        <fileset dir="${jboss.modules}/org/slf4j/main">
            <include name="slf4j-api-1.6.1.jar"/>
        </fileset>
        <fileset dir="../../build/lib">
            <include name="slf4j*.jar"/>
            <include name="log4j*.jar"/>
        </fileset>
        <fileset dir="${jboss.modules}/org/jboss/ejb-client/main/">
            <include name="jboss-ejb-client-1.0.6.CR1.jar"/>
        </fileset>

    </path>

    <filterset id="extra.filterset"/>

    <!-- Deployment is target specific so is included here -->
    <target name="deploy-rar" description="Deploy the RAR file.">
        <copy todir="${jboss.deploy}" overwrite="true">
            <fileset dir="${qpid.jca.dir}">
                <include name="${rar.name}"/>
            </fileset>
        </copy>
    </target>

    <target name="undeploy-rar" description="Undeploys the RAR deployment.">
        <delete file="${jboss.deploy}/${rar.name}"/>
    </target>

    <target name="deploy-ear" depends="package-ear" description="Deploys the EAR archive.">
        <copy todir="${jboss.deploy}" overwrite="true">
            <fileset dir="${build.dir}">
                <include name="${ear.name}"/>
            </fileset>
        </copy>
    </target>

    <target name="undeploy-ear" description="Undeploys the EAR archive.">
        <delete file="${jboss.deploy}/${ear.name}"/>
    </target>

    <target name="deploy-config" depends="generate" description="Deploys the standalone file to the JBoss environment.">
        <copy todir="${jboss.config.dir}" overwrite="true">
            <fileset dir="${gen.dir}">
                <include name="${jboss.server.config}.xml"/>
            </fileset>
        </copy>
    </target>

    <target name="undeploy-ds" description="Undeploys the ds.xml file from the JBoss environment.">
        <delete file="${jboss.deploy}/qpid-jca-ds.xml"/>
    </target>

</project>