Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7662597
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T13:50:27+00:00 2026-05-31T13:50:27+00:00

I’m looking for a solution to register the MBeans or the whole MBean Servers

  • 0

I’m looking for a solution to register the MBeans or the whole MBean Servers itself from different Java VMs in a central MBean Server which should also run in a separate VM. The goal is to have only one central MBean Server which contains all MBeans of the whole System.
One additional requirement is and thats the difficulty :-), that the “client” MBean Servers must connect/register to the central MBean Server and not the other way. The central MBean Server don’t need any knowledge of the “client” MBean Servers to register.

I have only found JMX examples in which the “master” MBean Server connects to the “client” MBean Servers and geht their registred MBeans but not the other way. Unfortunately the registerMBean() method which is used to register your own MBeans, only exists for local MBean Servers but not for remote MBean Servers on a MBeanServerConnection. There, it is only possible to use the createMbean() method, problem here is, that it worked to register the MBean in the remote MBean Server but then you have to different Objects, one local und another in the remote MBean Server. So the Problem now is, that when something changes on the local object the changes are only there, the registered MBean in the remote MBean Server doesen’t get these changes (new values of variables …). The only solution I have so far, is to create a loop to unregister the MBeans in the remote Server and create them new, to get the actual values of the object. Thats very ugly and also not so good for the performance.

I hope someone can give me a hint, how I can do this in a better way.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T13:50:29+00:00Added an answer on May 31, 2026 at 1:50 pm

    The OpenDMK provides a complete way to do this using the Cascading Service. From the documentation:

    The cascading service enables you to access the MBeans of a subagent
    directly through the MBean server of a master agent. The cascading
    service has been completely overhauled in Java Dynamic Management Kit
    (Java DMK) 5.1 to allow it to operate over the connector protocols
    defined by the Java Management Extensions (JMX) Remote API. The legacy
    cascading service is now deprecated. The examples of the legacy
    cascading service have been retained in Chapter 25, for reasons of
    backwards compatibility. However, when using legacy Java DMK
    connectors, you should use the new CasdingServiceMBean with wrapped
    legacy connectors rather than relying on the deprecated legacy
    cascading agent API.

    There are some interesting bits-and-pieces in this library that were slated to be naturalized into the standard Java SE in JMX 2.0. The cascading service, I think, was one of them. Once you understand how it works, you may conclude it is something you can implement yourself, although there are several thorny corner cases that the OpenDMK does account for. I am not sure how active the project is, but the software as is seems stable.

    You can find the documentation set here. Additionally, I created a mavenized project build of the packages here.

    //Nicholas

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have a text area in my form which accepts all possible characters from
Does anyone know how can I replace this 2 symbol below from the string
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I am currently running into a problem where an element is coming back from
I have thousands of HTML files to process using Groovy/Java and I need to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.