You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ro...@apache.org on 2015/10/13 18:11:55 UTC

qpid-jms git commit: QPIDJMS-125: fix a couple old c&p issues

Repository: qpid-jms
Updated Branches:
  refs/heads/master 47b67bfdf -> 06bb71677


QPIDJMS-125: fix a couple old c&p issues


Project: http://git-wip-us.apache.org/repos/asf/qpid-jms/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-jms/commit/06bb7167
Tree: http://git-wip-us.apache.org/repos/asf/qpid-jms/tree/06bb7167
Diff: http://git-wip-us.apache.org/repos/asf/qpid-jms/diff/06bb7167

Branch: refs/heads/master
Commit: 06bb716779eb08d20a98a87bcf5bac1f864c0409
Parents: 47b67bf
Author: Robert Gemmell <ro...@apache.org>
Authored: Tue Oct 13 17:11:09 2015 +0100
Committer: Robert Gemmell <ro...@apache.org>
Committed: Tue Oct 13 17:11:09 2015 +0100

----------------------------------------------------------------------
 .../main/java/org/apache/qpid/jms/provider/amqp/AmqpSession.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/06bb7167/qpid-jms-client/src/main/java/org/apache/qpid/jms/provider/amqp/AmqpSession.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/main/java/org/apache/qpid/jms/provider/amqp/AmqpSession.java b/qpid-jms-client/src/main/java/org/apache/qpid/jms/provider/amqp/AmqpSession.java
index 814f901..28fe3ea 100644
--- a/qpid-jms-client/src/main/java/org/apache/qpid/jms/provider/amqp/AmqpSession.java
+++ b/qpid-jms-client/src/main/java/org/apache/qpid/jms/provider/amqp/AmqpSession.java
@@ -151,7 +151,7 @@ public class AmqpSession extends AmqpAbstractResource<JmsSessionInfo, Session> i
      */
     public void commit(AsyncResult request) throws Exception {
         if (!getResourceInfo().isTransacted()) {
-            throw new IllegalStateException("Non-transacted Session cannot start a TX.");
+            throw new IllegalStateException("Non-transacted Session cannot commit a TX.");
         }
 
         getTransactionContext().commit(request);
@@ -167,7 +167,7 @@ public class AmqpSession extends AmqpAbstractResource<JmsSessionInfo, Session> i
      */
     public void rollback(AsyncResult request) throws Exception {
         if (!getResourceInfo().isTransacted()) {
-            throw new IllegalStateException("Non-transacted Session cannot start a TX.");
+            throw new IllegalStateException("Non-transacted Session cannot rollback a TX.");
         }
 
         getTransactionContext().rollback(request);


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org