File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes [EJB 3] MDB + Quartz vs EJB Timer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "[EJB 3] MDB + Quartz vs EJB Timer" Watch "[EJB 3] MDB + Quartz vs EJB Timer" New topic
Author

[EJB 3] MDB + Quartz vs EJB Timer

Celinio Fernandes
Ranch Hand

Joined: Jun 28, 2003
Posts: 547

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.


SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCBCD 5
Visit my blog
Sib Pete
Greenhorn

Joined: Apr 27, 2009
Posts: 26
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

Joined: Jul 20, 2005
Posts: 9317
    
109

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.

[My Blog] [JavaRanch Journal]
Celinio Fernandes
Ranch Hand

Joined: Jun 28, 2003
Posts: 547

OK, thanks.

And how would you compare Quartz with the EJB Timers ?
In terms of scheduling, performance, etc
 
 
subject: [EJB 3] MDB + Quartz vs EJB Timer
 
Similar Threads
Timer are persisted
EJB and Threads
Storing Object Temporarily
Scheduling Mail
Disable built-in Quartz service of JBoss5