This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

[EJB 3] MDB + Quartz vs EJB Timer

 
Celinio Fernandes
Ranch Hand
Posts: 549
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

What do people think about these 2 technologies :
EJB MDB + Quartz and EJB Timer.

What are the advantages/disadvantages of one compared to the other ?

If you need to implement a service that is scheduled to run at at specific times or time intervals, would you use EJB MDB and Quartz or EJB Timer only ?

Thanks for your feedback.
 
Sib Pete
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have used Quartz in the past and I find that it works really well for my needs. I especially like the fact that I can use cron expressions to schedule tasks. Besides that, there are also other features that I can see as being very beneficial such as the JDBC store, where you can use a database to persist the scheduled tasks which helps in scaling, clustering, high availability, etc., a default Quartz Initializer Servlet which I can just use as is, easily configurable tasks via xml or properties and so on.

Granted, I havent worked with EJB timers, so I am really not sure what its pros and cons are and how it compares to the Quartz scheduler.

It took me a little while to figure out the whole Quartz scheduler api, configuration and how to get it up and running, but going through all the documentation and samples helped me to easily figure it out.
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Celinio Fernandes wrote:
If you need to implement a service that is scheduled to run at at specific times or time intervals, would you use EJB MDB and Quartz or EJB Timer only ?



Remember, not all application servers support EJB MDB-Quartz integration. Hence it's not portable.
 
Celinio Fernandes
Ranch Hand
Posts: 549
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK, thanks.

And how would you compare Quartz with the EJB Timers ?
In terms of scheduling, performance, etc
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic