Results 1 to 4 of 4

Thread: JMX beans and prototypes

  1. #1
    Join Date
    Aug 2004
    Posts
    107

    Default JMX beans and prototypes

    I know I can use the jmx exporter to expose spring managed singleton beans.

    How do I export prototypes (with unique mbean name) via spring?

    Dino

  2. #2
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    I haven't tried this example but have you looked at NamingStrategy interfaces? If you can't find the functionality in the existing support raise an issue on jira please.
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

  3. #3
    Join Date
    Aug 2004
    Posts
    107

    Default

    Quote Originally Posted by costin
    I haven't tried this example but have you looked at NamingStrategy interfaces? If you can't find the functionality in the existing support raise an issue on jira please.
    I'm looking at the implementation and there doesn't seem to be a way to add a new mbean instance at run-time. The MBeanExporter looks at the start-up bean definitions.


    Dino

  4. #4
    Join Date
    Aug 2004
    Location
    Southampton, UK
    Posts
    826

    Default

    Dino,

    In Spring 2.0, MBeanExporter implements the MBeanExporterOperations interface which provides two mechanisms for registering MBeans at runtime using Spring's interface generation capabilities.

    Regards,

    Rob
    Rob Harrop
    Lead Engineer, dm Server
    SpringSource
    http://www.springsource.com

    Co-Author - Pro Spring

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •