[jboss-cvs] JBossAS SVN: r73001 - trunk/connector/src/main/org/jboss/resource/adapter/jms.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri May 2 07:34:29 EDT 2008


Author: jesper.pedersen
Date: 2008-05-02 07:34:29 -0400 (Fri, 02 May 2008)
New Revision: 73001

Modified:
   trunk/connector/src/main/org/jboss/resource/adapter/jms/JmsSession.java
Log:
[JBCTS-775] Throw IllegalStateException if commit is called on closed session

Modified: trunk/connector/src/main/org/jboss/resource/adapter/jms/JmsSession.java
===================================================================
--- trunk/connector/src/main/org/jboss/resource/adapter/jms/JmsSession.java	2008-05-02 11:34:24 UTC (rev 73000)
+++ trunk/connector/src/main/org/jboss/resource/adapter/jms/JmsSession.java	2008-05-02 11:34:29 UTC (rev 73001)
@@ -42,7 +42,6 @@
 import javax.jms.QueueReceiver;
 import javax.jms.QueueSender;
 import javax.jms.QueueSession;
-import javax.jms.ResourceAllocationException;
 import javax.jms.Session;
 import javax.jms.StreamMessage;
 import javax.jms.TemporaryQueue;
@@ -110,7 +109,7 @@
       if (mc != null)
          mc.tryLock();
       else
-         throw new ResourceAllocationException("Connection is not associated with a managed connection. " + this);
+         throw new IllegalStateException("Connection is not associated with a managed connection. " + this);
    }
 
    protected void unlock()




More information about the jboss-cvs-commits mailing list