Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6760712

Provide a connector server option that causes it not to prevent the VM from exiting

    Details

    • Subcomponent:
    • Resolved In Build:
      b43
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description

      By default, the VM will not exit if there are any running connector servers. The reasoning is that the connector server provides a way for the VM to do further work, in response to a client connection. For example, there could be MBean operations that trigger job creation, and a client could connect and invoke one.

      Sometimes, though, this behaviour gets in the way. The built-in ("out of the box") RMI connector disables it, so that apps do not suddenly stop exiting when run with -Dcom.sun.management.jmxremote. But the way that is implemented relies on internal APIs, so user code cannot reproduce it.

      An example of when users might want the same thing are if you have connected to an already-running app to insert a JMX agent via the Attach API, and that JMX agent is not just the built-in one. (Perhaps you want to be able to stop it when you no longer need it, which the built-in one doesn't support.) A second example is library code that can be added to existing apps to make them manageable - basically it would like to do what the built-in server does, but can't.

      See <http://forums.sun.com/thread.jspa?messageID=10469713> for some further discussion.

        Attachments

          Activity

            People

            • Assignee:
              sjiang Shanliang Jiang (Inactive)
              Reporter:
              emcmanus Eamonn McManus
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: