Reputation: 4476
Trying to dynamically create and provide security metadata for artemis mq topics (as opposed to defining them statically in broker.xml).
For that purpose I've implemented (as described here) the SecuritySettingPlugin
interface.
Now, the issue is the getSecurityRoles/populateSecurityRoles
of the implementation are called only at server startup.
So, at some point in time after the mq server has been started, a topic will be created :
org.apache.activemq.artemis.api.jms.management.JMSServerControl.createTopic("newTopic")
Now I would like artemis to call again my SecuritySettingPlugin
implementation to get the updated security roles (which will include configuration for the newly created newTopic
).
Is that possible ?
P.S. security-invalidation-interval
does not invalidate roles configuration cache.
Upvotes: 0
Views: 899
Reputation: 4476
Seems there is a way to customize an address security by API : ActiveMQServerControl.addSecuritySettings()
Upvotes: 1