activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r415543 - /incubator/activemq/trunk/activemq-ra/src/main/java/org/apache/activemq/ra/ActiveMQConnectionFactory.java
Date Tue, 20 Jun 2006 07:39:42 GMT
Author: jstrachan
Date: Tue Jun 20 00:39:42 2006
New Revision: 415543

URL: http://svn.apache.org/viewvc?rev=415543&view=rev
Log:
added a better error message if deployed on GlassFish and no connection manager is configured

Modified:
    incubator/activemq/trunk/activemq-ra/src/main/java/org/apache/activemq/ra/ActiveMQConnectionFactory.java

Modified: incubator/activemq/trunk/activemq-ra/src/main/java/org/apache/activemq/ra/ActiveMQConnectionFactory.java
URL: http://svn.apache.org/viewvc/incubator/activemq/trunk/activemq-ra/src/main/java/org/apache/activemq/ra/ActiveMQConnectionFactory.java?rev=415543&r1=415542&r2=415543&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-ra/src/main/java/org/apache/activemq/ra/ActiveMQConnectionFactory.java
(original)
+++ incubator/activemq/trunk/activemq-ra/src/main/java/org/apache/activemq/ra/ActiveMQConnectionFactory.java
Tue Jun 20 00:39:42 2006
@@ -1,4 +1,4 @@
-/**
+    /**
  *
  * Copyright 2005-2006 The Apache Software Foundation
  *
@@ -84,6 +84,9 @@
         try {
             if( info.isUseInboundSessionEnabled() ) {
                 return new InboundConnectionProxy();
+            }
+            if (manager == null) {
+                throw new JMSException("No JCA ConnectionManager configured! Either enable
UseInboundSessionEnabled or get your JCA container to configure one.");
             }
             return (Connection) manager.allocateConnection(factory, info);
         }



Mime
View raw message