activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r646409 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/BrokerService.java
Date Wed, 09 Apr 2008 15:41:34 GMT
Author: rajdavies
Date: Wed Apr  9 08:41:33 2008
New Revision: 646409

URL: http://svn.apache.org/viewvc?rev=646409&view=rev
Log:
Throw an exception if advisory messages are disabled when creating networks

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/BrokerService.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/BrokerService.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/BrokerService.java?rev=646409&r1=646408&r2=646409&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/BrokerService.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/BrokerService.java
Wed Apr  9 08:41:33 2008
@@ -272,6 +272,9 @@
      * @throws Exception
      */
     public NetworkConnector addNetworkConnector(URI discoveryAddress) throws Exception {
+        if (!isAdvisorySupport()) {
+            throw new javax.jms.IllegalStateException("Networks require advisory messages
to function - advisories are currently disabled");
+        }
         NetworkConnector connector = new DiscoveryNetworkConnector(discoveryAddress);
         return addNetworkConnector(connector);
     }



Mime
View raw message