A SERVICE OF

logo

Configuring AquaLogic Commerce Services
36 BEA AquaLogic Commerce Services Deployment Guide
<prop key="hibernate.jdbc.batch_size">20</prop>
</props>
</property>
quartz.xml
Quartz is used in AquaLogic Commerce Services to execute scheduled jobs (for example,
building the Lucene index). A quartz.xml file is used to configure quartz jobs for the different
AquaLogic Commerce Services applications. The quartz.xml file is located in the following
application-specific paths.
Storefront – <ALCS_APP_HOME>\commerceServices\WEB-INF\conf\spring\scheduling\
Commerce Manager – <ALCS_APP_HOME>\commerceServicesManager\WEB-
INF\conf\spring\scheduling\
Connect – <ALCS_APP_HOME>\commerceServicesConnect\WEB-
INF\conf\spring\scheduling\
Quartz files have three basic types of blocks of XML:
Factory block – The definition of the Scheduler Factory, which is used to populate a
Scheduler class with the list of Triggers that it will be responsible for executing.
Job block – The definition of the job that is being scheduled. This defines the method that
will be called by the Trigger and references the class in which the method lives.
Trigger block – The definition of the trigger that will be used to trigger the job. This will
usually be either a SimpleTriggerBean (which runs a job every x milliseconds) or a
CronTriggerBean (which will run a job at a specified time).
There is usually one Factory definition in a quartz.xml file, and then each job has both a Job
definition and a Trigger definition.
Extended information about Quartz is available from the Quartz website at
http://www.opensymphony.com/quartz/
Quartz Cron Configuration
The time/trigger to execute the scheduled job can be set with the cronExpression property. The
cron expression contains six required components and one optional component. A cron
expression is written on a single line and each component is separated from the next by space.
Only the last, or rightmost, component is optional. The table below describes the cron
components in detail.
Components of a Cron Expression: