[
https://jira.jboss.org/jira/browse/JBAS-6331?page=com.atlassian.jira.plug...
]
Brian Stansberry updated JBAS-6331:
-----------------------------------
Fix Version/s: Backlog
Assignee: Paul Ferraro (was: Brian Stansberry)
Assigning to you Paul. Scheduled as "Backlog" to indicate it's an accepted
JIRA ("None" means not qualifed yet), but feel free to schedule to a regular
minor or major release.
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: Paul Ferraro
Priority: Minor
Fix For: Backlog
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