[
http://jira.jboss.com/jira/browse/JBAS-3469?page=comments#action_12349234 ]
Dimitris Andreadis commented on JBAS-3469:
------------------------------------------
So this is done (experimentally).
First, there are 2 additional mbean attributes and 2 mbean operations that allow the
Barrier to respond with create and destroy state changes:
CreateBarrierHandback
DestroyBarrierHandback
To make the Barrier follow the cycle:
create/start -> stop/destroy -> create/start -> etc
Simply configure the DestroyBarrierHandback, instead of the StopBarrierHandback attribute
and you are set.
Also the default initial state for the Barrier is CREATED. In addition, if you want the
initial state of the Barrier to *not* be CREATED, you can set the new
BarrierCreatedOnStartup flag to false.
This extra bit works, but at deployment time it'll produce an annoying (and bogus)
ERROR on the console that the Barrier mbean is NOTYETINSTALLED. It is actually registerd
and configured, but not created or started yet. The error is printed because the Barrier
is not registered to the ServiceController, until *after* it goes in create state for the
first time.
I can fix it but I don't want to mess up with the ServiceController at this point (or
until the users complaint).
All changes should be backwards compatible, so it you don't need the extra feature you
shouldn't have to change your configuration.
Enhance the BarrierController with the ability to destroy/re-create
the Barrier
-------------------------------------------------------------------------------
Key: JBAS-3469
URL:
http://jira.jboss.com/jira/browse/JBAS-3469
Project: JBoss Application Server
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Components: System service
Affects Versions: JBossAS-4.0.4.GA
Reporter: Dimitris Andreadis
Assigned To: Dimitris Andreadis
Fix For: JBossAS-4.2.0.CR1
Investigate the possibility of having a special configuration that tells the
BarrierController to fully destroy and re-create the Barrier. That would allow services
that can be destroyed and re-created to be controlled by the Barrier.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira