Guest User

Untitled

a guest
Feb 20th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. @Startup
  2. @Singleton
  3. public class CustomerTimer {
  4.  
  5. private final static Logger LOGGER = Logger.getLogger(CustomerTimer.class);
  6.  
  7. @Schedule(hour = "*", minute = "*", second = "*/10")
  8. public void tick() {
  9. LOGGER.info("Time is " + LocalDateTime.now().toString());
  10. }
  11. }
Add Comment
Please, Sign In to add comment