Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Scheduling a job inside webapp

 
Anila Mathew
Ranch Hand
Posts: 69
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

If my assignment said "Architecture should be based on JEE Platform", can I choose Quartz as the Scheduler ?Though third-party, it is a java-based api, right ?

Any other options to trigger a Java Timer task from a webapp?

Regards,
Anila.
 
Purna Manepalli
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Anila,

Even i have the same situation and got same doubt. I have used EJB timers and started the timer from controller startup.
 
Marco Ehrentreich
best scout
Bartender
Posts: 1294
IntelliJ IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Anila,

if you can use JEE 6 / EJB 3.1 you could simply resort to the built-in Timer Service. It has a lot of features similar to Quartz (for example calendars and a Cron-like syntax) and it's very easy to use. Just have a look at the examples from Oracle's JEE tutorial ;-)

Marco
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic