Hi,
I'm trying to configure a broker for an application where we need the
gcInactiveDestinations feature, however, since these destinations also have
some defined security policies, when they're about to be removed, I get the
following exception:
| ERROR | Failed to remove inactive destination Queue:
destination=Test.test, subscriptions=0, memory=0%, size=0, in flight
groups=null | org.apache.activemq.broker.region.RegionBroker | ActiveMQ
Broker[broker] Scheduler
java.lang.SecurityException: User is not authenticated.
at
org.apache.activemq.security.AuthorizationBroker.removeDestination(AuthorizationBroker.java:89)
at
org.apache.activemq.broker.MutableBrokerFilter.removeDestination(MutableBrokerFilter.java:155)
at
org.apache.activemq.broker.region.RegionBroker.purgeInactiveDestinations(RegionBroker.java:944)
at
org.apache.activemq.broker.region.RegionBroker$1.run(RegionBroker.java:110)
at
org.apache.activemq.thread.SchedulerTimerTask.run(SchedulerTimerTask.java:33)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Browsing through the source code, I see that the connectionContext at
AuthorizationBroker lacks a securityContext. Is there anyway I can
configure one for the process that deletes inactive destinations? Here's my
activemq.xml configuration file:
http://activemq.2283324.n4.nabble.com/file/n3340161/activemq.xml
activemq.xml
I believe this might be accomplished with the managementContext, however
some help would be appreciated.
Thank you,
Juan.
--
View this message in context:
http://activemq.2283324.n4.nabble.com/Security-policies-and-inactive-queue-garbage-collection-tp3340161p3340161.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.