You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bsf-user@jakarta.apache.org by gabor <ga...@z10n.net> on 2004/09/19 10:16:46 UTC
how to terminate a script?
hi,
i've been using bsf to run javascript scripts..
what can i do if someone starts a script like
"while(1) {}"
?
is there a way to stop it's execution?
i tried BSFManager.terminate()
but it did not help...
for now i am running the scripts in a different thread,
and ignore it after a given timeout,
so it will not block the execution of the whole program,
but that's all i can do..that thread will still
run/consume-resources forever.
is there anything to stop a script from a different thread?
or to execute it with a timeout value?
thanks,
gabor
--
That's life for you, said McDunn. Someone always waiting for someone
who never comes home. Always someone loving something more than that
thing loves them. And after awhile you want to destroy whatever
that thing is, so it can't hurt you no more.
-- R. Bradbury, "The Fog Horn"
---------------------------------------------------------------------
To unsubscribe, e-mail: bsf-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bsf-user-help@jakarta.apache.org