Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Startup
- @Singleton
- public class CustomerTimer {
- private final static Logger LOGGER = Logger.getLogger(CustomerTimer.class);
- @Schedule(hour = "*", minute = "*", second = "*/10")
- public void tick() {
- LOGGER.info("Time is " + LocalDateTime.now().toString());
- }
- }
Add Comment
Please, Sign In to add comment