From 633c33f224f3196f3f9bd80bd2e418d8143fea06 Mon Sep 17 00:00:00 2001 From: Kim van der Riet Date: Fri, 4 May 2012 15:39:19 +0000 Subject: QPID-3858: Updated branch - merged from trunk r.1333987 git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/asyncstore@1334037 13f79535-47bb-0310-9956-ffa450edef68 --- java/jca/example/conf/geronimo-application.xml | 2 +- java/jca/example/conf/geronimo-ra.xml | 40 +- java/jca/example/conf/glassfish-ejb-jar.xml | 70 ++++ java/jca/example/conf/glassfish-resources.xml | 74 ++++ java/jca/example/conf/glassfish-web.xml | 26 ++ java/jca/example/conf/jboss-ejb-client.properties | 12 + java/jca/example/conf/jboss-web.xml | 5 + java/jca/example/conf/log4j.properties | 18 + java/jca/example/conf/qpid-jca-ds.xml | 27 +- java/jca/example/conf/qpid-standalone.xml | 422 ++++++++++++++++++++++ java/jca/example/conf/web.xml | 11 + 11 files changed, 682 insertions(+), 25 deletions(-) create mode 100644 java/jca/example/conf/glassfish-ejb-jar.xml create mode 100644 java/jca/example/conf/glassfish-resources.xml create mode 100644 java/jca/example/conf/glassfish-web.xml create mode 100644 java/jca/example/conf/jboss-ejb-client.properties create mode 100644 java/jca/example/conf/qpid-standalone.xml (limited to 'java/jca/example/conf') diff --git a/java/jca/example/conf/geronimo-application.xml b/java/jca/example/conf/geronimo-application.xml index a855e0fae8..384f6b2e75 100644 --- a/java/jca/example/conf/geronimo-application.xml +++ b/java/jca/example/conf/geronimo-application.xml @@ -21,7 +21,7 @@ --> diff --git a/java/jca/example/conf/geronimo-ra.xml b/java/jca/example/conf/geronimo-ra.xml index e3e74ebc62..a7511f647f 100644 --- a/java/jca/example/conf/geronimo-ra.xml +++ b/java/jca/example/conf/geronimo-ra.xml @@ -67,63 +67,73 @@ org.apache.qpid.ra.admin.QpidTopicImpl Dummy - amq.topic + amq.topic org.apache.qpid.ra.admin.QpidTopic org.apache.qpid.ra.admin.QpidTopicImpl - HelloTopic - @qpid.hello.topic.dest.address@ + HelloTopic + @qpid.hello.topic.dest.address@ org.apache.qpid.ra.admin.QpidTopic org.apache.qpid.ra.admin.QpidTopicImpl - GoodByeTopic - @qpid.goodbye.topic.dest.address@ + GoodByeTopic + @qpid.goodbye.topic.dest.address@ + org.apache.qpid.ra.admin.QpidQueue org.apache.qpid.ra.admin.QpidQueueImpl - HelloQueue - @qpid.hello.queue.dest.address@ + HelloQueue + @qpid.hello.queue.dest.address@ org.apache.qpid.ra.admin.QpidQueue org.apache.qpid.ra.admin.QpidQueueImpl - GoodByeQueue - @qpid.goodbye.queue.dest.address@ + GoodByeQueue + @qpid.goodbye.queue.dest.address@ org.apache.qpid.ra.admin.QpidQueue org.apache.qpid.ra.admin.QpidQueueImpl - ResponderQueue - @qpid.responder.queue.dest.address@ + RequestQueue + @qpid.request.queue.dest.address@ + + + + org.apache.qpid.ra.admin.QpidQueue + org.apache.qpid.ra.admin.QpidQueueImpl + + ResponseQueue + @qpid.response.queue.dest.address@ javax.jms.ConnectionFactory org.apache.qpid.ra.admin.QpidConnectionFactoryProxy - QpidConnectionFactory - @broker.url@ + QpidConnectionFactory + @broker.url@ diff --git a/java/jca/example/conf/glassfish-ejb-jar.xml b/java/jca/example/conf/glassfish-ejb-jar.xml new file mode 100644 index 0000000000..e3ea140472 --- /dev/null +++ b/java/jca/example/conf/glassfish-ejb-jar.xml @@ -0,0 +1,70 @@ + + + + + + QpidHelloListenerBean + HelloQueue + + qpid-ra-@rar.ver@ + + + QpidJMSXA + QpidJMSXA + + + + QpidGoodByeListenerBean + GoodByeQueue + + qpid-ra-@rar.ver@ + + + QpidJMSXA + QpidJMSXA + + + + QpidHelloSubscriberBean + HelloTopic + + qpid-ra-@rar.ver@ + + + QpidJMSXA + QpidJMSXA + + + + QpidGoodByeSubscriberBean + GoodByeTopic + + qpid-ra-@rar.ver@ + + + QpidJMSXA + QpidJMSXA + + + + QpidJMSResponderBean + QpidResponderQueue + + qpid-ra-@rar.ver@ + + + QpidJMSXA + QpidJMSXA + + + + QpidTestBean + QpidTestBean + + QpidJMSXA + QpidJMSXA + + + + + diff --git a/java/jca/example/conf/glassfish-resources.xml b/java/jca/example/conf/glassfish-resources.xml new file mode 100644 index 0000000000..9eab4302d5 --- /dev/null +++ b/java/jca/example/conf/glassfish-resources.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/java/jca/example/conf/glassfish-web.xml b/java/jca/example/conf/glassfish-web.xml new file mode 100644 index 0000000000..950ee73d51 --- /dev/null +++ b/java/jca/example/conf/glassfish-web.xml @@ -0,0 +1,26 @@ + + + + + qpid-jca-web + + + QpidTestBean + QpidTestBean + + + + QpidJMSXA + QpidJMSXA + + + HelloQueue + HelloQueue + + + HelloTopic + HelloTopic + + + + diff --git a/java/jca/example/conf/jboss-ejb-client.properties b/java/jca/example/conf/jboss-ejb-client.properties new file mode 100644 index 0000000000..8bf1075c14 --- /dev/null +++ b/java/jca/example/conf/jboss-ejb-client.properties @@ -0,0 +1,12 @@ +endpoint.name=client-endpoint +remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED=false + +remote.connections=default + +remote.connection.default.host=localhost +remote.connection.default.port = 4447 +remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS=false + +remote.connection.default.username=wmprice +remote.connection.default.password=72whtu78 + diff --git a/java/jca/example/conf/jboss-web.xml b/java/jca/example/conf/jboss-web.xml index edacf8d418..32a97d1c35 100644 --- a/java/jca/example/conf/jboss-web.xml +++ b/java/jca/example/conf/jboss-web.xml @@ -25,6 +25,11 @@ javax.jms.ConnectionFactory java:/QpidJMSXA + + QpidJMS + javax.jms.ConnectionFactory + java:/QpidJMS + QpidTestBean qpid-jcaex/QpidTestBean/local diff --git a/java/jca/example/conf/log4j.properties b/java/jca/example/conf/log4j.properties index f1847f4418..1139ab9e85 100644 --- a/java/jca/example/conf/log4j.properties +++ b/java/jca/example/conf/log4j.properties @@ -1,3 +1,21 @@ +# +# 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. +# log4j.rootLogger=DEBUG, CONSOLE, FILE #Console Appender diff --git a/java/jca/example/conf/qpid-jca-ds.xml b/java/jca/example/conf/qpid-jca-ds.xml index 80fb828b55..ad75876808 100644 --- a/java/jca/example/conf/qpid-jca-ds.xml +++ b/java/jca/example/conf/qpid-jca-ds.xml @@ -27,7 +27,7 @@ jboss.jca:service=RARDeployment,name='@rar.name@' org.apache.qpid.ra.admin.QpidTopic - destinationAddress=@qpid.hello.topic.dest.address@ + DestinationAddress=@qpid.hello.topic.dest.address@ @@ -37,7 +37,7 @@ jboss.jca:service=RARDeployment,name='@rar.name@' org.apache.qpid.ra.admin.QpidTopic - destinationAddress=@qpid.goodbye.topic.dest.address@ + DestinationAddress=@qpid.goodbye.topic.dest.address@ @@ -47,7 +47,7 @@ jboss.jca:service=RARDeployment,name='@rar.name@' org.apache.qpid.ra.admin.QpidTopic - destinationAddress=@qpid.hellogoodbye.topic.dest.address@ + DestinationAddress=@qpid.hellogoodbye.topic.dest.address@ @@ -57,7 +57,7 @@ jboss.jca:service=RARDeployment,name='@rar.name@' org.apache.qpid.ra.admin.QpidQueue - destinationAddress=@qpid.hello.queue.dest.address@ + DestinationAddress=@qpid.hello.queue.dest.address@ @@ -67,27 +67,36 @@ jboss.jca:service=RARDeployment,name='@rar.name@' org.apache.qpid.ra.admin.QpidQueue - destinationAddress=@qpid.goodbye.queue.dest.address@ + DestinationAddress=@qpid.goodbye.queue.dest.address@ - QpidResponderQueue + name="qpid.jca:name=QpidRequestQueue"> + QpidRequestQueue jboss.jca:service=RARDeployment,name='@rar.name@' org.apache.qpid.ra.admin.QpidQueue - destinationAddress=@qpid.responder.queue.dest.address@ + DestinationAddress=@qpid.request.queue.dest.address@ + + QpidResponseQueue + jboss.jca:service=RARDeployment,name='@rar.name@' + org.apache.qpid.ra.admin.QpidQueue + + DestinationAddress=@qpid.response.queue.dest.address@ + + QpidConnectionFactory jboss.jca:service=RARDeployment,name='@rar.name@' javax.jms.ConnectionFactory - connectionURL=@broker.url@ + ConnectionURL=@broker.url@ diff --git a/java/jca/example/conf/qpid-standalone.xml b/java/jca/example/conf/qpid-standalone.xml new file mode 100644 index 0000000000..8d6137aea7 --- /dev/null +++ b/java/jca/example/conf/qpid-standalone.xml @@ -0,0 +1,422 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + jdbc:h2:mem:test;DB_CLOSE_DELAY=-1 + + + h2 + + + + sa + + + sa + + + + + + + org.h2.jdbcx.JdbcDataSource + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + @rar.name@ + + + XATransaction + + + @broker.url@ + + + org.apache.qpid.ra.tm.JBoss7TransactionManagerLocator + + + getTm + + + + + @broker.url@ + + + javax.jms.Queue + + + + + + + @broker.url@ + + + + + @qpid.hello.topic.dest.address@ + + + + + @qpid.goodbye.topic.dest.address@ + + + + + @qpid.goodbye.queue.dest.address@ + + + + + @qpid.hello.queue.dest.address@ + + + + + @qpid.request.queue.dest.address@ + + + + + @qpid.response.queue.dest.address@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + true + + + ${jboss.bind.address:127.0.0.1} + + + + Standard-Endpoint-Config + + + + + Recording-Endpoint-Config + + + + + ##SOAP11_HTTP ##SOAP11_HTTP_MTOM ##SOAP12_HTTP ##SOAP12_HTTP_MTOM + + + + RecordingHandler + + + org.jboss.ws.common.invocation.RecordingServerHandler + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/java/jca/example/conf/web.xml b/java/jca/example/conf/web.xml index d87c578606..6e53d7beba 100644 --- a/java/jca/example/conf/web.xml +++ b/java/jca/example/conf/web.xml @@ -29,11 +29,22 @@ 1 + + QpidRequestResponseServlet + QpidRequestResponseServlet + org.apache.qpid.jca.example.web.QpidRequestResponseServlet + 1 + + QpidTestServlet /qpid + + QpidRequestResponseServlet + /qpid-reqresp + -- cgit v1.2.1