Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 3.1
    • Fix Version/s: 3.1_dev
    • Component/s: rest-interface
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      12,635

      Description

      In v3, there is a Runtime AMX mbean that returns the JMXServiceURLs , I am not sure if there is any CLI
      that will return such info.
      AMX runtime mbean: amx:pp=/,type=runtime
      classname: org.glassfish.admin.amx.base.RuntimeRoot
      attribute name: JMXServiceURLs

      That attribute is a String array instead of String. Does it mean there will there be use case where there
      may be more than 1 JMXServiceURL ? Please put this into consideration when returning this info.

      When this CLI is available, please transfer to rest-interface so it can be exposed through REST API

        Issue Links

          Activity

          Hide
          Anissa Lam added a comment -


          GUI REST conversion depends on this.

          Show
          Anissa Lam added a comment - GUI REST conversion depends on this.
          Hide
          Byron Nevins added a comment -

          I don't even know what a Jmx Service URL is.
          Tom - can you assign to someone more clued?

          Show
          Byron Nevins added a comment - I don't even know what a Jmx Service URL is. Tom - can you assign to someone more clued?
          Hide
          Tom Mueller added a comment -

          There is no CLI for obtaining the JMXServiceURLs for the server. The AMX
          interface calls the following to get them:

          @Inject
          MBeanServer mMbeanServer;

          ...

          try

          { return (JMXServiceURL[]) mMBeanServer.getAttribute(AMXGlassfish.DEFAULT.getBootAMXMBeanObjectName(), "JMXServiceURLs"); }

          catch (final JMException e)

          { throw new RuntimeException(e); }

          A REST interface can be created to return this information through direct access
          to the MBeanServer. A CLI is not needed.

          Show
          Tom Mueller added a comment - There is no CLI for obtaining the JMXServiceURLs for the server. The AMX interface calls the following to get them: @Inject MBeanServer mMbeanServer; ... try { return (JMXServiceURL[]) mMBeanServer.getAttribute(AMXGlassfish.DEFAULT.getBootAMXMBeanObjectName(), "JMXServiceURLs"); } catch (final JMException e) { throw new RuntimeException(e); } A REST interface can be created to return this information through direct access to the MBeanServer. A CLI is not needed.
          Hide
          sumasri added a comment -

          In v3, there is a Runtime AMX call to get the sub component details for a module
          of an application.

          AMX call : V3AMX.getInstance().getRuntime().getSubComponentsOfModule(appName,
          moduleName);

          How do we achieve the same functionality through REST?

          Show
          sumasri added a comment - In v3, there is a Runtime AMX call to get the sub component details for a module of an application. AMX call : V3AMX.getInstance().getRuntime().getSubComponentsOfModule(appName, moduleName); How do we achieve the same functionality through REST?
          Hide
          sumasri added a comment -

          In v3, there is a Runtime AMX call to get the sub component details for a module
          of an application.

          AMX call : V3AMX.getInstance().getRuntime().getSubComponentsOfModule(appName,
          moduleName);

          How do we achieve the same functionality through REST?

          Show
          sumasri added a comment - In v3, there is a Runtime AMX call to get the sub component details for a module of an application. AMX call : V3AMX.getInstance().getRuntime().getSubComponentsOfModule(appName, moduleName); How do we achieve the same functionality through REST?
          Hide
          Anissa Lam added a comment -

          Please don't worry about getSubComponentsOfModule() method.
          A separate issue (#12652) has been filed for that.

          Show
          Anissa Lam added a comment - Please don't worry about getSubComponentsOfModule() method. A separate issue (#12652) has been filed for that.
          Hide
          Jason Lee added a comment -

          The requirement here is simply a way to retrieve the JMX URL the user needs to connect to the server with
          jconsole.

          Show
          Jason Lee added a comment - The requirement here is simply a way to retrieve the JMX URL the user needs to connect to the server with jconsole.
          Hide
          Jason Lee added a comment -
          Show
          Jason Lee added a comment - Fix committed (rev 39020): http://localhost:4848/management/domain/jmx-urls

            People

            • Assignee:
              Jason Lee
              Reporter:
              Anissa Lam
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: