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

applicationContext.xml
(<Spring Home>\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:
<bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource"
destroy-method="close">
<property name="driverClass" value="${jdbc.driverClassName}"/>
<property name="jdbcUrl" value="${jdbc.url}"/>
<property name="user" value="${jdbc.username}"/>
<property name="password" value="${jdbc.password}"/>
</bean>
After the change:
<bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource"
destroy-method="close">
<property name="driverClass" value="${jdbc.driverClassName}"/>
<property name="jdbcUrl" value="${jdbc.url}"/>
<property name="properties">
<props>
<prop key="user">${jdbc.username}</prop>
<prop key="password">${jdbc.password}</prop>
<prop key="catalog">${jdbc.catalog}</prop>
<prop key="schema">${jdbc.schema}</prop>
<prop key="blobTableName">${jdbc.blobTableName}</prop>
</props>
</property>
</bean>
schedulingContext-quartz.xml
(<Spring Home>\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:
<bean id="listImagesTrigger"
class="org.springframework.scheduling.quartz.SimpleTriggerBean">
<property name="jobDetail" ref="listImagesJobDetail"/>
<property name="startDelay" value="10000"/>
<property name="repeatInterval" value="10000"/>
</bean>
After the change:
<bean id="listImagesTrigger"
class="org.springframework.scheduling.quartz.SimpleTriggerBean">
<property name="jobDetail" ref="listImagesJobDetail"/>
162
Customizing Sample Applications