[jboss-jira] [JBoss JIRA] Created: (JBAS-6331) Allow HASingletonController to control non-mbeans
Paul Ferraro (JIRA)
jira-events at lists.jboss.org
Wed Dec 17 14:46:55 EST 2008
Allow HASingletonController to control non-mbeans
-------------------------------------------------
Key: JBAS-6331
URL: https://jira.jboss.org/jira/browse/JBAS-6331
Project: JBoss Application Server
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Components: Clustering
Affects Versions: JBossAS-5.0.0.GA
Reporter: Paul Ferraro
Assignee: Brian Stansberry
Priority: Minor
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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list