I have a component that implements Configurable, Initializable,
Disposable, Startable, LogEnabled.
In my initializable I check for a certain condition to occur (e.g. if X
is true ) and while that condition hasn't occured, I do a:
while ( ! X ) {
Thread.currentThread().sleep( 1000 )
log.info("Sleeping untill X = true ");
}
Mistakenly, while developing, I never set this condition to true ( X =
true ), so the above code continued to execute indefinitely.
So having realized this, I tried shutting down Merlin by doing Ctlr-C.
This I figured would result in CLI trappng and starting to go through
shutdown sequence and component decomposition.
Without having the above code that was the normal behaviour when I
Ctrl-C'd.
What I saw, that merlin did not respond to my interrupt command and
continued with the Thread sleep code.
any ideas ? Is that normal behaviour ?
thanks
Korosh.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]