Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow MBeanServerFactoryBean to specify PlatformMBeanServer explicitly [SPR-5909] #10578

Closed
spring-projects-issues opened this issue Jul 8, 2009 · 2 comments
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

Support Tech opened SPR-5909 and commented

Added on behalf of customer:

Add functionality to MBeanServerFactoryBean to be able to specify that the platform manager returned by MBeanServer (ManagementFactory.getPlatformMBeanServer()) be returned when a constant agent id such as "platform" is used rather than creating a new server or returning one based on an agent id.


Referenced from: commits e0bb838

1 votes, 1 watchers

@spring-projects-issues
Copy link
Collaborator Author

Celal Ziftci commented

To give some background on this:
MBeanServerFactory is useful for creating new MBeanServers with an agentid.
We are looking for a way to to get it to return the platform MBeanServer (ManagementFactory.getPlatformMBeanServer()) when given a special agentId.

This would help us use MBeanServerFactory consistently in shared environments (where several MBeanServers with different agentids are needed) and in single app per jvm environments (where there is only 1 MBeanServer generally, the platform one).

Currently we can only use MBeanServerFactory in the first case (shared environments).

@spring-projects-issues
Copy link
Collaborator Author

Juergen Hoeller commented

MBeanServerFactoryBean returns the platform MBeanServer for agent id "" (empty String) now. Inventing a specific agent id could potentially conflict with an actual MBeanServer being named that way; the empty String seems to be fine in that respect.

Juergen

@spring-projects-issues spring-projects-issues added type: enhancement A general enhancement in: core Issues in core modules (aop, beans, core, context, expression) labels Jan 11, 2019
@spring-projects-issues spring-projects-issues added this to the 3.0 RC1 milestone Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants