Hi Srini,

So I assume you want to stop the Twill application when the client
shutdown, right? How do you know if the stop method of the
TwillRunnable has been executed or not? Can you show your
implementation of TwillRunnable so that I can take a look?

Thanks,
Terence

On Sat, Oct 4, 2014 at 5:46 PM, Srinivas Reddy Kancharla
<[email protected]> wrote:
> Hi,
>
> I have 3 AbstractTwillRunnable runnables added to my Twill application
> which is getting executed successfully. But I am failing to execute "stop"
> method of AbstractTwillRunnable which I override.
> I am expecting the stop to be invoked for below call:
>
> Runtime.getRuntime().addShutdownHook(new Thread() {
>       @Override
>       public void run() {
>         *controller.stopAndWait();*
>       }
>     });
>
> "controller" is an instance of TwillController.
>
> Also I tried twillRunner.stopAndWait(); where twillRunner is an instance of
> TwillRunnerService. Is there anything I am missing to invoke "stop" method?
>
> Thanks and regards,
> Srini

Reply via email to