This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes Disable built-in Quartz service of JBoss5 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Disable built-in Quartz service of JBoss5" Watch "Disable built-in Quartz service of JBoss5" New topic
Author

Disable built-in Quartz service of JBoss5

Benson Fung
Ranch Hand

Joined: Apr 10, 2003
Posts: 208
Hi,

I am doubting if I disable the built-in Quartz of JBoss5, is there any impact to the JBoss5 application server itself? It is because I developed an web application which embedded its own newer version of Quartz. In order to prevent 2 versions of Quartz running on the JBoss, I would like to disable the jboss built-in quartz and want to see if there is any impact the app. server in terms of the performance and functionality.

Please help


Benson
E Armitage
Rancher

Joined: Mar 17, 2012
Posts: 892
    
    9
I've 'upgraded' the Jboss 5 ones by simply replacing the quatz.jar in jobss' common lib folder without getting any issues before.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10146
    
165

JBoss server itself doesn't require Quartz, so you can remove that service.

[My Blog] [JavaRanch Journal]
Benson Fung
Ranch Hand

Joined: Apr 10, 2003
Posts: 208
Hi Jakiran,

Thanks for your reply. I also agree with you actually. However, I read some materials that the JMS service also needs Quartz or Quartz is the resource to the JMS service. What is that about? Can elaborate?


Thanks
Benson
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10146
    
165

Benson Fung wrote: However, I read some materials that the JMS service also needs Quartz or Quartz is the resource to the JMS service.

Can you point me to that doc, if you have it around? JMS in JBoss AS doesn't depend on Quartz.
Benson Fung
Ranch Hand

Joined: Apr 10, 2003
Posts: 208
Hi Jaikiran,

Please visit the following link, the first paragraph.

JBossAS comes bundled with Quartz integration packaged as a JCA Message-Inflow resource adapter quartz-ra.rar. This integration allows you to schedule stateless or stateful quartz jobs and have the job be posted to a Message Driven bean.

What does the above sentence mean? Why need to have the job posted to a MDB? From my knowledge, MDB itself doesn't need to scheduling, it is just keep polling the queue and call the callback method onMessage, right?


Please help


Benson
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10146
    
165

Benson Fung wrote:

What does the above sentence mean? Why need to have the job posted to a MDB? From my knowledge, MDB itself doesn't need to scheduling, it is just keep polling the queue and call the callback method onMessage, right?



Right, the JMS MDBs don't require any Quartz support. The sentence that you posted is talking about the quartz service which provides an additional feature which applications might want to use if they want to trigger an MDB at regular intervals, instead of having to publish messages to JMS destinations which would trigger the MDB. There are some applications which schedule Quartz jobs and expect that to trigger a MDB invocation. If your application doesn't need that (which I am guessing it doesn't), then you can remove the quartz-ra.rar
Benson Fung
Ranch Hand

Joined: Apr 10, 2003
Posts: 208
Thank you,

Actually, the Quartz can trigger any job to do anything, why the material particular mention the Quartz is to trigger to MDB? I thought there is a reason behind.

Benson
Benson Fung
Ranch Hand

Joined: Apr 10, 2003
Posts: 208
Please see the link, especially the first paragraph. I forgot to post the link, sorry

http://docs.jboss.org/ejb3/docs/tutorial/1.0.7/html/Quartz_scheduler_integration.html


Benson
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Disable built-in Quartz service of JBoss5