admin@glassfish.java.net

Re: Why does force kill ignore the timeout

From: Jane Young <Jane.Young_at_Sun.COM>
Date: Mon, 18 Jun 2007 10:43:47 -0700

Hi Byron,

Thanks for this information.
Do you know if "eeInstancesManager.stopInstanceWithinTime(timeout);" is
working?

Jane


BN wrote:

> ProcessInstanceInternal is the eventual place where NA stops an instance.
> As you can see in the code below -- it doesn't use a timeout but
> instead immediately kills it
>
> -- isTimeBound is true for force-kill, false for normal stop-instance
>
>
> if (isTimeBound) {
> *boolean stopped = false*;
> //eeInstancesManager.stopInstanceWithinTime(timeout);
> * if (!stopped)*
> eeInstancesManager.killRelatedProcesses();
> } else {
> eeInstancesManager.stopInstance();
> }
>