From 8581b766bdd0fe06b128ea0f4fdf814435e618cb Mon Sep 17 00:00:00 2001 From: Andrew Stitcher Date: Sun, 18 Dec 2011 05:09:07 +0000 Subject: QPID-3044: Implement JCA Adapter for Java JMS client - Large contributions from Weston Price & Kevin Conner git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1220336 13f79535-47bb-0310-9956-ffa450edef68 --- .../jca/src/main/resources/META-INF/jboss-ra.xml | 33 ++++ qpid/java/jca/src/main/resources/META-INF/ra.xml | 220 +++++++++++++++++++++ 2 files changed, 253 insertions(+) create mode 100644 qpid/java/jca/src/main/resources/META-INF/jboss-ra.xml create mode 100755 qpid/java/jca/src/main/resources/META-INF/ra.xml (limited to 'qpid/java/jca/src/main/resources') diff --git a/qpid/java/jca/src/main/resources/META-INF/jboss-ra.xml b/qpid/java/jca/src/main/resources/META-INF/jboss-ra.xml new file mode 100644 index 0000000000..f459b1efc1 --- /dev/null +++ b/qpid/java/jca/src/main/resources/META-INF/jboss-ra.xml @@ -0,0 +1,33 @@ + + + + + TransactionManagerLocatorClass + java.lang.String + org.apache.qpid.ra.tm.JBossTransactionManagerLocator + + + TransactionManagerLocatorMethod + java.lang.String + getTm + + diff --git a/qpid/java/jca/src/main/resources/META-INF/ra.xml b/qpid/java/jca/src/main/resources/META-INF/ra.xml new file mode 100755 index 0000000000..90dc7b3b8e --- /dev/null +++ b/qpid/java/jca/src/main/resources/META-INF/ra.xml @@ -0,0 +1,220 @@ + + + + + + QPID Resource Adapter + QPID Resource Adapter + + Apache Software Foundation + JMS 1.1 Server + 1.0 + + + + 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. + + true + + + + org.apache.qpid.ra.QpidResourceAdapter + + Client ID for the connection + ClientId + java.lang.String + client_id + + + + Number of setup attempts before failing + SetupAttempts + java.lang.Integer + 5 + + + + Interval between setup attempts + SetupInterval + java.lang.Long + 5000 + + + + Use local transactions rather than XA + UseLocalTx + java.lang.Boolean + false + + + + Broker host + Host + java.lang.String + localhost + + + + Broker port + Port + java.lang.Integer + 5672 + + + + Virtual Path for Connection Factory + Path + java.lang.String + test + + + + connection URL + ConnectionURL + java.lang.String + amqp://guest:guest@/test?brokerlist='tcp://localhost:5672' + + + + + org.apache.qpid.ra.QpidRAManagedConnectionFactory + + + Default session type + sessionDefaultType + java.lang.String + javax.jms.Queue + + + + Specify lock timeout in seconds + useTryLock + java.lang.Integer + 0 + + + + Use local transactions rather than XA + UseLocalTx + java.lang.Boolean + false + + + + Client ID for the connection + ClientID + java.lang.String + client_id + + + + Connection URL + ConnectionURL + java.lang.String + + + + + Broker host + Host + java.lang.String + localhost + + + + Broker port + Port + java.lang.Integer + 5672 + + + + Virtual Path for Connection Factory + Path + java.lang.String + test + + + org.apache.qpid.ra.QpidRAConnectionFactory + org.apache.qpid.ra.QpidRAConnectionFactoryImpl + javax.jms.Session + org.apache.qpid.ra.QpidRASessionImpl + + XATransaction + + BasicPassword + javax.resource.spi.security.PasswordCredential + + false + + + + + javax.jms.MessageListener + + org.apache.qpid.ra.inflow.QpidActivationSpec + + destination + + + + + + + + javax.jms.Destination + org.apache.qpid.ra.admin.QpidDestinationProxy + + destinationAddress + java.lang.String + + + destinationType + java.lang.String + + + + javax.jms.ConnectionFactory + org.apache.qpid.ra.admin.QpidConnectionFactoryProxy + + connectionURL + java.lang.String + + + + -- cgit v1.2.1