// TODO: check state
try
{
Scheduler scheduler = QuartzTimerServiceFactory.getScheduler();
Trigger trigger = scheduler.getTrigger(triggerName, triggerGroup);
if(trigger == null)
throw new NoSuchObjectLocalException("can't find trigger '" + triggerName + "' in group '" + triggerGroup + "'");
return new TimerImpl(scheduler, trigger, info);
}
catch(SchedulerException e)
{
log.error("getTimer failed", e);
throw new EJBException(e);
}