Timer at websphere startup causes applications not to start
prakash parasu
Greenhorn
Joined: Oct 09, 2001
Posts: 7
posted
0
Hello I am trying to schedule a process to be run at midnight I have called the process from the startup servlet of websphere Now I have to run the process at 12 midnight So I calculate the time difference and call the function timer.scheduleatfixrate at 12 and after a delay of 24 hours what happens at startup is it waits for the application to start up and websphere times out after some time and does not start the main application I am sending a piece of code I am not sure why it is happening could anyone provide an insight Timer t = new Timer(true); long period = 0 ; t.scheduleAtFixedRate(new FileCleanUpUtil(),diffcal,period); //diffCal is the calulation stating that it has to run at 12 at night so the diff between now and 12 midnight If there is an alternative solution pl let me know
subject: Timer at websphere startup causes applications not to start