diff options
| author | Alex Rudyy <orudyy@apache.org> | 2014-10-23 16:04:24 +0000 |
|---|---|---|
| committer | Alex Rudyy <orudyy@apache.org> | 2014-10-23 16:04:24 +0000 |
| commit | 882aa4e7dba8471ca3616bd431146a18645574a9 (patch) | |
| tree | 97fc1f9c2d5ff30ca3a8e251e2067d4d9bbc541b /qpid/java/broker-core | |
| parent | b6d5cb94f83b5a8424f43bcd9495810351272373 (diff) | |
| download | qpid-python-882aa4e7dba8471ca3616bd431146a18645574a9.tar.gz | |
QPID-6184: Add special thread factory to use with Executors which creates Threads with empty inherited AccessControlContext
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1633862 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/broker-core')
| -rw-r--r-- | qpid/java/broker-core/src/main/java/org/apache/qpid/server/virtualhost/AbstractVirtualHost.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qpid/java/broker-core/src/main/java/org/apache/qpid/server/virtualhost/AbstractVirtualHost.java b/qpid/java/broker-core/src/main/java/org/apache/qpid/server/virtualhost/AbstractVirtualHost.java index 56e28bd870..97af9ecf2b 100644 --- a/qpid/java/broker-core/src/main/java/org/apache/qpid/server/virtualhost/AbstractVirtualHost.java +++ b/qpid/java/broker-core/src/main/java/org/apache/qpid/server/virtualhost/AbstractVirtualHost.java @@ -43,6 +43,7 @@ import javax.security.auth.Subject; import org.apache.log4j.Logger; import org.apache.qpid.exchange.ExchangeDefaults; +import org.apache.qpid.pool.SuppressingInheritedAccessControlContextThreadFactory; import org.apache.qpid.server.configuration.BrokerProperties; import org.apache.qpid.server.configuration.IllegalConfigurationException; import org.apache.qpid.server.connection.ConnectionRegistry; @@ -1386,7 +1387,7 @@ public abstract class AbstractVirtualHost<X extends AbstractVirtualHost<X>> exte @StateTransition( currentState = { State.UNINITIALIZED,State.ERRORED }, desiredState = State.ACTIVE ) private void onActivate() { - _houseKeepingTasks = new ScheduledThreadPoolExecutor(getHousekeepingThreadCount()); + _houseKeepingTasks = new ScheduledThreadPoolExecutor(getHousekeepingThreadCount(), new SuppressingInheritedAccessControlContextThreadFactory()); MessageStore messageStore = getMessageStore(); messageStore.openMessageStore(this); |
