return _timerService;
}
private static synchronized void initEJBTimerService(String target, boolean force) {
if (_timerService == null) {
PersistentTimerService persistentTS =
EjbContainerUtilImpl.getInstance().getServices().getService(PersistentTimerService.class);
if (persistentTS == null) {
try {
_timerService = new EJBTimerService();
_timerServiceVerified = true;
} catch (Exception e) {
logger.log (Level.WARNING, "Cannot start EJBTimerService: ", e);
}
} else {
synchronized (lock) {
persistentTS.initPersistentTimerService(target);
_timerServiceVerified = true;
}
// Do postprocessing if everything is OK
if (_timerService != null) {