I want to schedule a java program in weblogic that runs every night can you any one help on this ?
Ee can do this using thread but I don`t think that is efficient way.
I want to schedule a java program in weblogic that runs every night can you any one help on this ?
Ee can do this using thread but I don`t think that is efficient way.
WebLogic 11g is a Java EE 5 compliant application server. So you can use the TimerService
:
@Singleton
public class TimerSessionBean {
@Resource
TimerService timerService;
@Schedule(minute="0", hour="1")
public void atOneInTheNight() {
// Do stuff
}
}
I would go for Quartz Scheduler. http://quartz-scheduler.org/