beautypg.com

Applicationcontext.xml, Schedulingcontext-quartz.xml – HP Integrity NonStop H-Series User Manual

Page 162

background image

applicationContext.xml

(\samples\imagedb\war\WEB-INF\applicationContext.xml)

:

The

applicationContext.xml

file contains all the configuration metadata for ImageDB.

This file is modified to set the following properties:

catalog

schema

blobTableName

Changes to the

applicationContext.xml

file

The dataSource bean is modified to set the catalog, schema, and blobTableName properties.
Before the change:

destroy-method="close">




After the change:

destroy-method="close">




${jdbc.username}
${jdbc.password}
${jdbc.catalog}
${jdbc.schema}
${jdbc.blobTableName}


schedulingContext-quartz.xml

(\samples\imagedb\war\WEB-INF\schedulingContext-quartz.xml):

The

schedulingContext-quartz.xml

file contains the configuration of quartz and the Job

definition that needs to be performed. This file is modified to increase the time interval between
the task thereby reducing logging.

Changes to the

schedulingContext-quartz.xml file

The following modifications were made to increase the time interval:

Increased the time interval for sending mail to the specified mail id.
Before the change:

class="org.springframework.scheduling.quartz.SimpleTriggerBean">



After the change:

class="org.springframework.scheduling.quartz.SimpleTriggerBean">

162

Customizing Sample Applications

This manual is related to the following products: