hi,
I have problems trying to stop a scheduled job.
when I use the JobQueue method "remove(myJob)" it
doesn't throw any exception but it doesn't stop the
thread too. the following method in my implementation
of ScheduleService throws a NullPointerException:

public void removeJob(JobEntry je) throws Exception
{
    scheduleQueue.remove(je);
    restart();
}

public synchronized void restart()
{
    if (thread == null)
    {
        thread = new Thread(mainLoop,
ScheduleService.SERVICE_NAME);
        thread.setDaemon(true);
        thread.start();
    }
    else
    {
        notify();
    }
}

any help would be appreciated!

Hristo Kosev

__________________________________________________
Terrorist Attacks on U.S. - How can you help?
Donate cash, emergency relief information
http://dailynews.yahoo.com/fc/US/Emergency_Information/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to