activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r412076 - /incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/JDBCPersistenceAdapter.java
Date Tue, 06 Jun 2006 10:55:23 GMT
Author: jstrachan
Date: Tue Jun  6 03:55:22 2006
New Revision: 412076

URL: http://svn.apache.org/viewvc?rev=412076&view=rev
Log:
added better exception message if a dataSource is not provided

Modified:
    incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/JDBCPersistenceAdapter.java

Modified: incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/JDBCPersistenceAdapter.java
URL: http://svn.apache.org/viewvc/incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/JDBCPersistenceAdapter.java?rev=412076&r1=412075&r2=412076&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/JDBCPersistenceAdapter.java
(original)
+++ incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/JDBCPersistenceAdapter.java
Tue Jun  6 03:55:22 2006
@@ -290,6 +290,9 @@
     }
 
     public TransactionContext getTransactionContext() {
+        if (dataSource == null) { 
+            throw new IllegalArgumentException("No dataSource property has been configured");
+        }
         return new TransactionContext(dataSource);
     }
 



Mime
View raw message