From ea0cd012b199f4a5054873d746bbf20454ff0021 Mon Sep 17 00:00:00 2001 From: Robert Davies Date: Thu, 27 Dec 2007 11:03:41 +0000 Subject: [PATCH] fix for http://issues.apache.org/activemq/browse/AMQ-1157 git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@607037 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/activemq/broker/region/AbstractRegion.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/activemq-core/src/main/java/org/apache/activemq/broker/region/AbstractRegion.java b/activemq-core/src/main/java/org/apache/activemq/broker/region/AbstractRegion.java index 3917e4789a..313271d00f 100755 --- a/activemq-core/src/main/java/org/apache/activemq/broker/region/AbstractRegion.java +++ b/activemq-core/src/main/java/org/apache/activemq/broker/region/AbstractRegion.java @@ -41,6 +41,7 @@ import org.apache.activemq.command.RemoveSubscriptionInfo; import org.apache.activemq.command.Response; import org.apache.activemq.filter.DestinationFilter; import org.apache.activemq.filter.DestinationMap; +import org.apache.activemq.security.SecurityContext; import org.apache.activemq.thread.TaskRunnerFactory; import org.apache.activemq.usage.SystemUsage; import org.apache.commons.logging.Log; @@ -81,7 +82,7 @@ public abstract class AbstractRegion implements Region { this.destinationFactory = destinationFactory; } - public void start() throws Exception { + public final void start() throws Exception { started = true; Set inactiveDests = getInactiveDestinations(); @@ -90,6 +91,7 @@ public abstract class AbstractRegion implements Region { ConnectionContext context = new ConnectionContext(); context.setBroker(broker.getBrokerService().getBroker()); + context.setSecurityContext(SecurityContext.BROKER_SECURITY_CONTEXT); context.getBroker().addDestination(context, dest); }