Uploaded image for project: 'Byteman'
  1. Byteman
  2. BYTEMAN-136

Adding a shutdown hook to the JMXHelper.

XMLWordPrintable

    • Hide

      Apply the attached svn diff file to update the JMXHelper class.

      Show
      Apply the attached svn diff file to update the JMXHelper class.
    • Hide

      None.

      Show
      None.

      The JMXHelper in the samples currently adds an MBean connection server to an RMI registry service.

      But it does not remove the MBean connection server when the jvm is shutdown. This can be an issue when a subsequent jvm starts and attempts to add an MBean with the same name. The RMI registry service will throw an exception.
      This contribution adds a shutdown hook to the jvm when the JMXHelper is initialised.

              rhn-engineering-adinn Andrew Dinn
              jwhiting@redhat.com Jeremy Whiting
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: