diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2009-02-19 18:44:06 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2009-02-19 18:44:06 +0000 |
commit | 20a4dddd3467d5d1c52109946af0d295561f614e (patch) | |
tree | 1d573f1ecad206a21ff1f569eb9f6a499f480331 /branches/sca-java-1.x/modules/binding-jms-runtime/src/main/java/org/apache | |
parent | f0c06bdab6246426895cea64823d0a055054e4ca (diff) |
Fix already closed bug when the responseConnection is the same as the request connection
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@745960 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches/sca-java-1.x/modules/binding-jms-runtime/src/main/java/org/apache')
-rw-r--r-- | branches/sca-java-1.x/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/JMSResourceFactoryImpl.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/branches/sca-java-1.x/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/JMSResourceFactoryImpl.java b/branches/sca-java-1.x/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/JMSResourceFactoryImpl.java index 80d1646c71..aef0902e8c 100644 --- a/branches/sca-java-1.x/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/JMSResourceFactoryImpl.java +++ b/branches/sca-java-1.x/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/JMSResourceFactoryImpl.java @@ -246,7 +246,7 @@ public class JMSResourceFactoryImpl implements JMSResourceFactory { } public void closeResponseConnection() throws JMSException { - if (responseConnection != null) { + if (responseConnection != null && !responseConnection.equals(connection)) { try { responseConnection.close(); } catch (JMSException e) { |