No. You have to cancel and then reschedule it. I was asking about canceling a running job, i.e. interrupting its execution, which would be more involved.
Does that mean that i can reschedule the previously running timertask without canceling it.
I'm not sure what you're asking. Once a TimerTask has been scheduled for repeated execution, it remains scheduled. For rescheduling you should cancel it first.
however the problem is how do i check if the task is scheduled or not.
the instance of timer keeps on runnig while the application server is shut down.
So is there any thing that can be done with JBoss server 4.0.5?
Or is there any way to unload the library (.dll) files using any java code at the time of ContextDestroyed ?
What i want to know is if we can also have any such machanism with which we can provide the info to the application server about the location of library files.