• Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB Timer vs Java TimerTask  RSS feed

 
Tina Ma
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using EJB3.0 in my project. I need to write a task which will automatically run at fixed intervals. In this case, what are the advantages of using the EJB Timer vs java.util.Timer and related classes.
 
Jaikiran Pai
Sheriff
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does your timer task require any of the services that are provided by a EJB (like transactions)?
 
Tina Ma
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes, it does. I suppose there I have my answer !
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!