Petclinic, Building petclinic on windows – HP Integrity NonStop H-Series User Manual
Page 48
NOTE:
There are four sample applications distributed with the Spring distribution, of which
three (PetClinic, JPetStore, and ImageDB) are discussed here. The modifications made in these
three sample applications are discussed in the
Customizing Sample Applications
section.
PetClinic
The PetClinic sample application is an information system that is accessible using a web browser.
The intended users of the application are employees of the clinic, who, in the course of their
work, need to view and manage information regarding veterinarians, clients, and their pets.
This section describes the following steps for the PetClinic sample application.
•
•
Setting up PetClinic Database on NonStop
•
Deploying PetClinic on NonStop
•
NOTE:
The modifications made to the PetClinic files are described in the
section.
Building PetClinic on Windows
To build PetClinic on your Windows system, complete the following steps:
1.
Go to the
<My SASH Home>\spring\samples\petclinic
directory on your Windows
system. Among the other files, this directory must have the following sub-directories:
\db
includes the database table creation scripts and dataload scripts.
\src
includes the customized source for PetClinic.
\war
includes all the necessary configuration files required to build the application web
application archive (
WAR)
file.
\etc
includes the Hibernate dialect file (
hibernate3sqlmx.jar)
for SQL/MX database.
NOTE:
The Hibernate dialect file maps the Hibernate queries (HQL) to SQL/MX specific
queries. For convenience, the Hibernate dialect file is included in the
<My SASH
Home>\spring\samples\petclinic\etc
directory present in the
SAMPLES.zip
file. For information on Hibernate, see the
Installing Hibernate Framework
chapter.
2.
Modify the PetClinic build file.
•
If you plan to use the JDBC Type 2 driver, set the
spring.root
property in the
<My
SASH Home>\spring\samples\petclinic\build_jdbct2.xml
as:
Spring Home
> is
C:\spring-framework-2.5.5
, modify
spring.root
to:
If you plan to use the JDBC Type 4 driver:
1.
Set the
spring.root
properties in the
build_jdbct4.xml
file as:
Installing Spring Framework