ActiveMQ: Intercept publishing to a certain topic
问题 I'm setting up an ActiveMQ broker with MQTT that uses an external service for user authentication. I figured out how to write a BrokerFilter and plug it into a broker, so the basics are covered. I could even limit users in the topics they are allowed to subscribe on using the addConsumer() override. That method looks like this, and works: override fun addConsumer(context: ConnectionContext?, info: ConsumerInfo?): Subscription { // let connections from the local vm through return if