Spring Framework
  1. Spring Framework
  2. SPR-9662

Provide runtime access to Spring container and bean graph metadata

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 3.2 RC1
    • Component/s: Core
    • Labels:
      None
    • Last commented by a User:
      true

      Description

      In support of the upcoming STS 3.1 release and its runtime bean graph visualization feature [1], provide access at runtime to information about live Spring container(s) within a given application (JVM) including information about Spring beans and the dependencies between them, currently active profiles, etc.

      Current plan is to expose this information via a JMX bean, registered by the Spring container against the platform default MBean server, having a minimal read-only API outputting JSON.

      [1]: https://issuetracker.springsource.com/browse/STS-2810

        Activity

        Hide
        Chris Beams added a comment -

        Juergen, assigning this to you for now, simply so the issue has an owner. Let's discuss breaking up the work.

        Show
        Chris Beams added a comment - Juergen, assigning this to you for now, simply so the issue has an owner. Let's discuss breaking up the work.
        Hide
        Juergen Hoeller added a comment -

        Initial version available now.

        Show
        Juergen Hoeller added a comment - Initial version available now.
        Hide
        Paul Brabban added a comment -

        I can't find any documentation about how this information is exposed in the Spring 3.2 reference documentation at http://static.springsource.org/spring/docs/3.2.x/spring-framework-reference/html/. After browsing the new features in 3.2 section, I tried searching for "runtime". Would it be useful to have this feature documented, as in at least how to enable it and how to obtain a JSON description of the container?

        Show
        Paul Brabban added a comment - I can't find any documentation about how this information is exposed in the Spring 3.2 reference documentation at http://static.springsource.org/spring/docs/3.2.x/spring-framework-reference/html/ . After browsing the new features in 3.2 section, I tried searching for "runtime". Would it be useful to have this feature documented, as in at least how to enable it and how to obtain a JSON description of the container?
        Hide
        Oliver Gierke added a comment -

        Have a look at LiveBeansViewServlet which you can simply register in your web application. Alternatively you can enable JMX exposure in your app and register a LiveBeansView bean. The feature is primarily intended to be used by tooling like STS, which is why it hasn't been documented too verbosely.

        Show
        Oliver Gierke added a comment - Have a look at LiveBeansViewServlet which you can simply register in your web application. Alternatively you can enable JMX exposure in your app and register a LiveBeansView bean. The feature is primarily intended to be used by tooling like STS, which is why it hasn't been documented too verbosely.
        Hide
        Paul Brabban added a comment -

        Thanks for the info, that should help me. FWIW, I would be surprised if this kind of feature doesn't wind up being of interest to more operations-oriented parties as well.

        Show
        Paul Brabban added a comment - Thanks for the info, that should help me. FWIW, I would be surprised if this kind of feature doesn't wind up being of interest to more operations-oriented parties as well.

          People

          • Assignee:
            Juergen Hoeller
            Reporter:
            Chris Beams
            Last updater:
            Paul Brabban
          • Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Days since last comment:
              46 weeks, 6 days ago