qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kw...@apache.org
Subject svn commit: r1730072 - /qpid/java/trunk/broker-core/src/main/java/org/apache/qpid/server/model/port/AmqpPortImpl.java
Date Fri, 12 Feb 2016 17:02:33 GMT
Author: kwall
Date: Fri Feb 12 17:02:32 2016
New Revision: 1730072

URL: http://svn.apache.org/viewvc?rev=1730072&view=rev
Log:
QPID-7048: [Java Broker] Log a warning if an AMQPPort does not have one or more virtual host
aliases

Modified:
    qpid/java/trunk/broker-core/src/main/java/org/apache/qpid/server/model/port/AmqpPortImpl.java

Modified: qpid/java/trunk/broker-core/src/main/java/org/apache/qpid/server/model/port/AmqpPortImpl.java
URL: http://svn.apache.org/viewvc/qpid/java/trunk/broker-core/src/main/java/org/apache/qpid/server/model/port/AmqpPortImpl.java?rev=1730072&r1=1730071&r2=1730072&view=diff
==============================================================================
--- qpid/java/trunk/broker-core/src/main/java/org/apache/qpid/server/model/port/AmqpPortImpl.java
(original)
+++ qpid/java/trunk/broker-core/src/main/java/org/apache/qpid/server/model/port/AmqpPortImpl.java
Fri Feb 12 17:02:32 2016
@@ -333,6 +333,13 @@ public class AmqpPortImpl extends Abstra
     public void onValidate()
     {
         super.onValidate();
+        Collection<VirtualHostAlias> aliases = getChildren(VirtualHostAlias.class);
+        if (aliases.size() == 0)
+        {
+            LOGGER.warn("{} has no virtualhost aliases defined.  No AMQP connections will
be possible"
+                        + " through this port until at least one alias is added.", this);
+        }
+
         validateThreadPoolSettings(this);
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message