You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any ResourceConfigCustomizer bean is applied within the JerseyAutoConfiguration but also in the JerseyManagementContextConfiguration. It is not currently possible to exclude the bean's application in the management context. This can be a relevant problem if the management server runs on a different port.
If a singleton resource is registered in both contexts, this breaks the singleton contract as the API is now reachable via two ResourceConfigs on two different ports.
Therefore, it should be possible to restrict the application of ResourceConfigCustomizer to the main server. Currently, it is only possible to register an API exclusively in the management server via @ManagementContextConfiguration.