You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@artemis.apache.org by "hyperxpro (via GitHub)" <gi...@apache.org> on 2026/03/06 16:29:10 UTC

[PR] Support disabling JMX notifications [artemis]

hyperxpro opened a new pull request, #6278:
URL: https://github.com/apache/artemis/pull/6278

   Motivation:
   
   [JMX notifications](https://docs.oracle.com/en/java/javase/17/docs/api/java.management/javax/management/Notification.html) are rarely used these days yet the broker still mirrors all management notifications as JMX notifications. This is unnecessary overhead in most circumstances so we should allow users to disable them.
   
   Modification:
   
   Added a new `jmx-notification-enabled` boolean configuration property (default true) to allow users to disable the mirroring of management notifications as JMX notifications. When set to false, the `NotificationBroadcasterSupport` in `ManagementServiceImpl` is not instantiated, and all JMX notification methods in ActiveMQServerControlImpl short-circuit, eliminating the overhead.
   
   Result:
   Fixes [ARTEMIS-5607](https://issues.apache.org/jira/browse/ARTEMIS-5607)
   


-- 
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: issues-unsubscribe@artemis.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org
For additional commands, e-mail: issues-help@artemis.apache.org


Re: [PR] ARTEMIS-5607 Support disabling JMX notifications [artemis]

Posted by "clebertsuconic (via GitHub)" <gi...@apache.org>.
clebertsuconic commented on PR #6278:
URL: https://github.com/apache/artemis/pull/6278#issuecomment-4049989237

   I added an additional commit to your branch (a test on broker properties).


-- 
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: issues-unsubscribe@artemis.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org
For additional commands, e-mail: issues-help@artemis.apache.org


Re: [PR] ARTEMIS-5607 Support disabling JMX notifications [artemis]

Posted by "jbertram (via GitHub)" <gi...@apache.org>.
jbertram commented on PR #6278:
URL: https://github.com/apache/artemis/pull/6278#issuecomment-4040056300

   @hyperxpro, this looks good overall. Nice work! That said, there are a few items that need attention:
   
   1. The commit message should reference the Jira. See [here](https://artemis.apache.org/components/artemis/documentation/hacking-guide/#commitMessageDetails).
   2. There is no test that verifies the behavior. I think even a simple unit test that verifies `broadcast` is `null` or not when creating an instance of `ManagementServiceImpl` would be sufficient.
   3. I realize now that using the term "mirrors" in Jira description was a mistake because we already have a mirroring feature in the broker and this may cause confusion. You've used this term throughout the JavaDoc and commit message. I think using something like "reproduces" (and variants) would be more clear.


-- 
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: issues-unsubscribe@artemis.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org
For additional commands, e-mail: issues-help@artemis.apache.org


Re: [PR] ARTEMIS-5607 Support disabling JMX notifications [artemis]

Posted by "clebertsuconic (via GitHub)" <gi...@apache.org>.
clebertsuconic commented on PR #6278:
URL: https://github.com/apache/artemis/pull/6278#issuecomment-4050296447

   I will add this to releases.adoc


-- 
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: issues-unsubscribe@artemis.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org
For additional commands, e-mail: issues-help@artemis.apache.org


Re: [PR] ARTEMIS-5607 Support disabling JMX notifications [artemis]

Posted by "clebertsuconic (via GitHub)" <gi...@apache.org>.
clebertsuconic merged PR #6278:
URL: https://github.com/apache/artemis/pull/6278


-- 
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: issues-unsubscribe@artemis.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org
For additional commands, e-mail: issues-help@artemis.apache.org


Re: [PR] ARTEMIS-5607 Support disabling JMX notifications [artemis]

Posted by "clebertsuconic (via GitHub)" <gi...@apache.org>.
clebertsuconic commented on PR #6278:
URL: https://github.com/apache/artemis/pull/6278#issuecomment-4050370140

   @hyperxpro thank you so much for this contribution. 


-- 
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: issues-unsubscribe@artemis.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org
For additional commands, e-mail: issues-help@artemis.apache.org


Re: [PR] ARTEMIS-5607 Support disabling JMX notifications [artemis]

Posted by "hyperxpro (via GitHub)" <gi...@apache.org>.
hyperxpro commented on PR #6278:
URL: https://github.com/apache/artemis/pull/6278#issuecomment-4049341966

   @clebertsuconic @jbertram PTAL, aligned everything as requested. :)


-- 
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: issues-unsubscribe@artemis.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org
For additional commands, e-mail: issues-help@artemis.apache.org


Re: [PR] ARTEMIS-5607 Support disabling JMX notifications [artemis]

Posted by "clebertsuconic (via GitHub)" <gi...@apache.org>.
clebertsuconic commented on PR #6278:
URL: https://github.com/apache/artemis/pull/6278#issuecomment-4046387987

   I guess the only thing missing is the commit id? and a test?
   
   @hyperxpro let me know if you can do? if you can't just let me know and I will do it.
   
   


-- 
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: issues-unsubscribe@artemis.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org
For additional commands, e-mail: issues-help@artemis.apache.org


Re: [PR] ARTEMIS-5607 Support disabling JMX notifications [artemis]

Posted by "clebertsuconic (via GitHub)" <gi...@apache.org>.
clebertsuconic commented on PR #6278:
URL: https://github.com/apache/artemis/pull/6278#issuecomment-4046980990

   @hyperxpro please type the following before you make any further changes:
   
   git pull --rebase ARTEMIS-5607
   
   
   I amended the commit on your branch (It's a feature on github that I can change branch)


-- 
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: issues-unsubscribe@artemis.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org
For additional commands, e-mail: issues-help@artemis.apache.org


Re: [PR] ARTEMIS-5607 Support disabling JMX notifications [artemis]

Posted by "jbertram (via GitHub)" <gi...@apache.org>.
jbertram commented on PR #6278:
URL: https://github.com/apache/artemis/pull/6278#issuecomment-4040079042

   Regarding the name `jmx-notification-enabled`, this is consistent with the naming convention used for other settings (e.g. `jmx-management-enabled`, `persistence-enabled`, `message-counter-enabled`, etc.). Therefore, I don't have a problem with the name.


-- 
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: issues-unsubscribe@artemis.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org
For additional commands, e-mail: issues-help@artemis.apache.org


Re: [PR] ARTEMIS-5607 Support disabling JMX notifications [artemis]

Posted by "clebertsuconic (via GitHub)" <gi...@apache.org>.
clebertsuconic commented on PR #6278:
URL: https://github.com/apache/artemis/pull/6278#issuecomment-4039967888

   - this needs a JIRA
   - I'm not sure I like the name of the property on the configuration.. although I'm terrible with names.. I would prefer a name that doesn't not include "enabled" in the property name.


-- 
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: issues-unsubscribe@artemis.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org
For additional commands, e-mail: issues-help@artemis.apache.org


Re: [PR] ARTEMIS-5607 Support disabling JMX notifications [artemis]

Posted by "clebertsuconic (via GitHub)" <gi...@apache.org>.
clebertsuconic commented on PR #6278:
URL: https://github.com/apache/artemis/pull/6278#issuecomment-4049886517

   I will run my private CI with the complete testsuite. and if everything is good I will merge this.
   
   thank you.


-- 
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: issues-unsubscribe@artemis.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org
For additional commands, e-mail: issues-help@artemis.apache.org


Re: [PR] ARTEMIS-5607 Support disabling JMX notifications [artemis]

Posted by "clebertsuconic (via GitHub)" <gi...@apache.org>.
clebertsuconic commented on PR #6278:
URL: https://github.com/apache/artemis/pull/6278#issuecomment-4050299023

   I meant versions.adoc


-- 
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: issues-unsubscribe@artemis.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org
For additional commands, e-mail: issues-help@artemis.apache.org