From d43d1912b376322e27fdcda551a73f9ff5487972 Mon Sep 17 00:00:00 2001 From: Kim van der Riet Date: Fri, 3 Aug 2012 12:13:32 +0000 Subject: QPID-3858: Updated branch - merged from trunk r.1368650 git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/asyncstore@1368910 13f79535-47bb-0310-9956-ffa450edef68 --- java/jca/build.xml | 11 +++++++---- java/jca/example/README-EXAMPLE.txt | 5 +++++ java/jca/example/build-jboss7-properties.xml | 15 ++++++--------- java/jca/example/conf/qpid-standalone.xml | 2 +- .../main/java/org/apache/qpid/ra/QpidRAXAResource.java | 17 +++++++++++++++-- 5 files changed, 34 insertions(+), 16 deletions(-) (limited to 'java/jca') diff --git a/java/jca/build.xml b/java/jca/build.xml index 3430232003..934514aa52 100644 --- a/java/jca/build.xml +++ b/java/jca/build.xml @@ -18,18 +18,20 @@ - under the License. - --> - + - + - - + + + + @@ -66,4 +68,5 @@ + diff --git a/java/jca/example/README-EXAMPLE.txt b/java/jca/example/README-EXAMPLE.txt index 3a2ee0c38e..fd0af585ef 100644 --- a/java/jca/example/README-EXAMPLE.txt +++ b/java/jca/example/README-EXAMPLE.txt @@ -232,4 +232,9 @@ While this documentation highlights the major components and steps needed to tak the possiblities for modifcation are numerous. You are encouraged to experiment with the example as you work to develop your own messaging applications. +***Note*** +Due to the way Ant handle XML escape characters in the Copy task, if you are attempting to deploy the +examples to a clustered broker configuration, you will need to modify the resultant XML configuration +file to remove the '&' character and replace it with the & character. This file varies by app +server. Please see the app server specific documentation for your platform for further details. diff --git a/java/jca/example/build-jboss7-properties.xml b/java/jca/example/build-jboss7-properties.xml index 68ecd8a4f4..157802cc73 100644 --- a/java/jca/example/build-jboss7-properties.xml +++ b/java/jca/example/build-jboss7-properties.xml @@ -53,19 +53,19 @@ - + - + - + - + - + @@ -121,13 +121,10 @@ - + - - - diff --git a/java/jca/example/conf/qpid-standalone.xml b/java/jca/example/conf/qpid-standalone.xml index 8d6137aea7..2e22bd3f99 100644 --- a/java/jca/example/conf/qpid-standalone.xml +++ b/java/jca/example/conf/qpid-standalone.xml @@ -1,3 +1,4 @@ + - diff --git a/java/jca/src/main/java/org/apache/qpid/ra/QpidRAXAResource.java b/java/jca/src/main/java/org/apache/qpid/ra/QpidRAXAResource.java index 22b39792b1..37ae7f5514 100644 --- a/java/jca/src/main/java/org/apache/qpid/ra/QpidRAXAResource.java +++ b/java/jca/src/main/java/org/apache/qpid/ra/QpidRAXAResource.java @@ -21,10 +21,13 @@ package org.apache.qpid.ra; +import java.util.List; + import javax.transaction.xa.XAException; import javax.transaction.xa.XAResource; import javax.transaction.xa.Xid; +import org.apache.qpid.client.AMQXAResource; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -32,7 +35,7 @@ import org.slf4j.LoggerFactory; * QpidRAXAResource. * */ -public class QpidRAXAResource implements XAResource +public class QpidRAXAResource implements AMQXAResource { /** The logger */ private static final Logger _log = LoggerFactory.getLogger(QpidRAXAResource.class); @@ -192,7 +195,7 @@ public class QpidRAXAResource implements XAResource { _log.trace("isSameRM(" + xaRes + ")"); } - + return _xaResource.isSameRM(xaRes); } @@ -242,4 +245,14 @@ public class QpidRAXAResource implements XAResource return _xaResource.setTransactionTimeout(seconds); } + + public String getBrokerUUID() + { + return ((AMQXAResource)_xaResource).getBrokerUUID(); + } + + public List getSiblings() + { + return ((AMQXAResource)_xaResource).getSiblings(); + } } -- cgit v1.2.1