Skip to content

Allow JMX Registration Policy to be set#32573

Closed
mdeinum wants to merge 1 commit intospring-projects:mainfrom
mdeinum:jmx-registration-policy
Closed

Allow JMX Registration Policy to be set#32573
mdeinum wants to merge 1 commit intospring-projects:mainfrom
mdeinum:jmx-registration-policy

Conversation

@mdeinum
Copy link
Contributor

@mdeinum mdeinum commented Oct 3, 2022

Currently the JmxAutoconfiguration sets the RegistrationPolicy to FAIL_ON_EXISTING. However there can be situations where it might be useful to set it to something else like IGNORE_EXISTING.

This could help to workaround the issue with both HikariCP and Spring Boot registering JMX beans.

See https://stackoverflow.com/questions/73896176/spring-boot-hikari-config-not-loaded/73896695#73896695 (for my recommended solution).

And the issue from HikariCP with several other proposed solutions/workaround.

The drawback of those solutions, imho, is that the disable (or at least partially) the auto-configuration from Spring Boot.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Oct 3, 2022
@philwebb philwebb added the for: team-meeting An issue we'd like to discuss as a team to make progress label Oct 3, 2022
@philwebb philwebb added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged for: team-meeting An issue we'd like to discuss as a team to make progress labels Nov 14, 2022
@philwebb philwebb added this to the 3.1.x milestone Nov 14, 2022
@mhalbritter
Copy link
Contributor

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: enhancement A general enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants