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 <[email protected]>
Authored: Tue Oct 13 17:11:09 2015 +0100
Committer: Robert Gemmell <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to