From fc0839f84efc550451a98a26696d153e71d883e5 Mon Sep 17 00:00:00 2001 From: "Weston M. Price" Date: Wed, 18 Apr 2012 05:34:59 +0000 Subject: QPID-3776: Add support for JBoss7 Application Server git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1327380 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/java/jca/example/build-jboss7-properties.xml | 46 +++++++++++++++------- qpid/java/jca/example/build.xml | 5 ++- .../jca/example/conf/jboss-ejb-client.properties | 12 ++++++ qpid/java/jca/example/conf/standalone.xml | 29 ++++++++------ .../qpid/ra/admin/QpidConnectionFactoryProxy.java | 12 +++--- 5 files changed, 70 insertions(+), 34 deletions(-) create mode 100644 qpid/java/jca/example/conf/jboss-ejb-client.properties diff --git a/qpid/java/jca/example/build-jboss7-properties.xml b/qpid/java/jca/example/build-jboss7-properties.xml index cfbaa9b473..68ecd8a4f4 100644 --- a/qpid/java/jca/example/build-jboss7-properties.xml +++ b/qpid/java/jca/example/build-jboss7-properties.xml @@ -21,20 +21,25 @@ + - - - - - + + + + + + + - + - - + + + + @@ -44,19 +49,20 @@ + - + - + - + - + @@ -64,15 +70,25 @@ + + + - - - + + + + + + + + + + diff --git a/qpid/java/jca/example/build.xml b/qpid/java/jca/example/build.xml index 60b7f7a0d1..64d70d3499 100644 --- a/qpid/java/jca/example/build.xml +++ b/qpid/java/jca/example/build.xml @@ -27,7 +27,7 @@ - + @@ -147,6 +147,9 @@ + + + diff --git a/qpid/java/jca/example/conf/jboss-ejb-client.properties b/qpid/java/jca/example/conf/jboss-ejb-client.properties new file mode 100644 index 0000000000..8bf1075c14 --- /dev/null +++ b/qpid/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/qpid/java/jca/example/conf/standalone.xml b/qpid/java/jca/example/conf/standalone.xml index 5d4256f8e7..8d6137aea7 100644 --- a/qpid/java/jca/example/conf/standalone.xml +++ b/qpid/java/jca/example/conf/standalone.xml @@ -279,34 +279,39 @@ - + @broker.url@ - - + + @qpid.hello.topic.dest.address@ - - + + @qpid.goodbye.topic.dest.address@ - - + + @qpid.goodbye.queue.dest.address@ - - + + @qpid.hello.queue.dest.address@ - - - @qpid.responder.queue.dest.address@ + + + @qpid.request.queue.dest.address@ + + + + + @qpid.response.queue.dest.address@ diff --git a/qpid/java/jca/src/main/java/org/apache/qpid/ra/admin/QpidConnectionFactoryProxy.java b/qpid/java/jca/src/main/java/org/apache/qpid/ra/admin/QpidConnectionFactoryProxy.java index 7f2bee079f..a948948d6a 100644 --- a/qpid/java/jca/src/main/java/org/apache/qpid/ra/admin/QpidConnectionFactoryProxy.java +++ b/qpid/java/jca/src/main/java/org/apache/qpid/ra/admin/QpidConnectionFactoryProxy.java @@ -77,17 +77,17 @@ public class QpidConnectionFactoryProxy implements Externalizable, Referenceable public void writeExternal(ObjectOutput out) throws IOException { - if (_delegate == null) - { - _log.error("Null Destination "); - throw new IOException("Null ConnectionFactory!"); - } try { + if(_delegate == null) + { + getReference(); + } + out.writeObject(((Referenceable) _delegate).getReference()); } - catch (NamingException e) + catch (Exception e) { _log.error("Failed to dereference ConnectionFactory " + e.getMessage(), e); throw new IOException("Failed to dereference ConnectionFactory: " + e.getMessage()); -- cgit v1.2.1