Dynamic parameters for @Schedule method in an EJB 3.x
问题 I'm new to the @Schedule annotations in J2EE6 I want to run a job using EJB 3.x with Glassfish 3.1. The javax.ejb.Schedule seems to be a good choice for us, so we could think of our custom time as something like: @Singleton public class CustomTimer { @EJB SettingsFacade settingsFacade; @Schedule(second="someSecondParameter", minute="someMinuteParameter",hour="someHourParameter", persistent=false) public void executeTimer(){ //Code executing something against database using the settingsFacade