if (ElementType.METHOD.equals(ainfo.getElementType())) {
Method annMethod = (Method) ainfo.getAnnotatedElement();
// .xml-defined timer method overrides @Schedule
if( !ejbDesc.hasScheduledTimerMethodFromDD(annMethod)) {
ScheduledTimerDescriptor sd = new ScheduledTimerDescriptor();
sd.setSecond(sch.second());
sd.setMinute(sch.minute());
sd.setHour(sch.hour());
sd.setDayOfMonth(sch.dayOfMonth());
sd.setMonth(sch.month());
sd.setDayOfWeek(sch.dayOfWeek());
sd.setYear(sch.year());
sd.setTimezone(sch.timezone());
sd.setPersistent(sch.persistent());
sd.setInfo(sch.info());
sd.setTimeoutMethod(new MethodDescriptor(annMethod));
ejbDesc.addScheduledTimerDescriptor(sd);
if (logger.isLoggable(Level.FINE)) {
logger.fine("@@@ Found Schedule on " + annMethod);
logger.fine("@@@ TimerConfig : " +
((sd.getInfo() != null && !sd.getInfo().equals(""))? sd.getInfo() : null) +
" # " + sd.getPersistent());
}
}
}
}