Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-8943

Introduce @EnableMBeanExport equivalent to <context:mbean-export>

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 3.1 GA
    • Fix Version/s: 3.2 RC1
    • Component/s: JMX
    • Last commented by a User:
      true

      Description

      Spring 3.1 introduces several @Enable* annotations. However this code snippet:

      <context:mbean-export/>
      

      cannot be expressed with annotations. There is a valid simple workaround:

      @Bean
      public AnnotationMBeanExporter annotationMBeanExporter() {
          return new AnnotationMBeanExporter();
      }
      

      but it would be nice to have built-in @Enable... annotation. Note that in JavaConfig project there was @MBeanExport annotation.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              cbeams Chris Beams
              Reporter:
              nurkiewicz Tomasz Nurkiewicz
              Last updater:
              Spring Issues
              Votes:
              5 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 40 weeks, 2 days ago