Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-6331

Allow HASingletonController to control non-mbeans

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Obsolete
    • Icon: Minor Minor
    • No Release
    • JBossAS-5.0.0.GA
    • Clustering
    • None

      Currently, HASingletonController can only control and mbean, and relies on awkward reflection-based mbean method invocation to start/stop the target singleton.
      IMO, a better approach, using microcontainer configuration, would involve simple injection the target bean. The target bean would implement org.jboss.ha.framework.interfaces.HASingletonLifecycle. The HASingletonController simply delegates its own startSingleton()/stopSingleton() methods to the same methods on the target bean. An alternate implementation might use annotations marking the start/stop methods, rather than requiring the target bean to implement an interface.

              pferraro@redhat.com Paul Ferraro
              pferraro@redhat.com Paul Ferraro
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: