cshannon commented on PR #1416:
URL: https://github.com/apache/activemq/pull/1416#issuecomment-2751755362

   > That is a really good point. I actually thought about it while I was 
writing this short proposal. The issue in my opinion is if you write a 
Destination Interceptor (and inject that in activemq.xml) then let's say I want 
to write a plugin that involves those missing destination methods, I would need 
to write it in two parts. Given there are precedent of destination level 
operation exposed on `BrokerFilter` I think adding it to the BrokerFilter will 
create a better dev experience. What do you all think?
   
   Adding more things to the BrokerFilter for a plugin is probably fine I was 
just curious if you had looked at the interceptor to see if it could work for 
your use case today. As you pointed out, the one problem is things are not 
consolidated and that's where a plugin helps.
   
   I wonder if for AMQ 7.x we should re-work the plugin API a little bit and 
split things out. In Artemis I contributed the [plugin 
API](https://github.com/apache/activemq-artemis/tree/main/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/plugin)
 and separated things into different interfaces to make it a bit simpler to 
implement. We could do something like that too for AMQ 7 and plugin 
implementations could optionally implement different interfaces for what they 
want to do (destination plugins, etc).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: gitbox-unsubscr...@activemq.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscr...@activemq.apache.org
For additional commands, e-mail: gitbox-h...@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact


Reply via email to