NanoContainer
  1. NanoContainer
  2. NANO-13

NanoMXContainer - Need public access to the ObjectName

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0-beta-1
    • Component/s: None
    • Labels:
      None
    • Environment:
      MX4J 1.1.1
    • Number of attachments :
      0

      Description

      Here's what I'm trying to do before I explain why I need access to the ObjectName:

      I am attempting to add a JMX NotificationListener to a TimerMBean that has been registered in JXM via NanoMX. But to add a NotificationListener, I need to have the ObjectName of the TimerMBean like this:

      mBeanServer.addNotificationListener(
      timerObjectName, listener, filter, null);

      Currently, it doesn't look like I can cleanly access the generated JMX
      ObjectName for the Timer. My temporary fix on my local source was to make NanoMXContainer#asObjectName public. That would be an acceptable solution to me for the CVS as well.

      Thanks!

        Activity

        Hide
        Aslak Hellesøy added a comment -

        Fixed. The (static) method is now on the adapter

        Show
        Aslak Hellesøy added a comment - Fixed. The (static) method is now on the adapter
        Aslak Hellesøy made changes -
        Field Original Value New Value
        Status Unassigned [ 1 ] Closed [ 6 ]
        Fix Version/s 1.0-alpha-1 [ 10146 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Jonathan Carlson
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: