aspose 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 Soft Skills this week in the Jobs Discussion 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: 548

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: 10288
    
168

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: 548

OK, thanks.

And how would you compare Quartz with the EJB Timers ?
In terms of scheduling, performance, etc
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: [EJB 3] MDB + Quartz vs EJB Timer