IntelliJ Java IDE
The moose likes Websphere and the fly likes Timer at  websphere startup causes applications not to start Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Websphere
Reply Bookmark "Timer at  websphere startup causes applications not to start" Watch "Timer at  websphere startup causes applications not to start" New topic
Author

Timer at websphere startup causes applications not to start

prakash parasu
Greenhorn

Joined: Oct 09, 2001
Posts: 7
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
 
Threads others viewed
Scheduler Servlet
javax.swing.Timer
EJB Timer Services Query
javax.swing.Timer
Thread Scheduler
MyEclipse, The Clear Choice