Manual

\src
includes the customized source for ImageDB.
\war
includes all the necessary configuration files required to build the application WAR file.
2. Modify the ImageDB build file.
If you plan to use the JDBC Type 2 driver, set the spring.root property in the <My
SASH Home>\spring\samples\imagedb\build_jdbct2.xml file as:
<property name="spring.root" value="<Spring Home>/>
For example, if your <Spring Home> is C:\spring-framework-2.5.5, modify
the spring.root property to:
<property name="spring.root" value="C:\spring-framework-2.5.5/>
If you plan to use the JDBC Type 4 driver:
1. Set the spring.root properties in the build_jdbct4.xml file as:
<property name="spring.root" value="<Spring Home>/>
For example, if your <Spring Home> is C:\spring-framework-2.5.5, modify
the spring.root property to:
<property name="spring.root" value="C:\spring-framework-2.5.5/>
2. Set the jdbct4.root properties in the build_jdbct4.xml file as:
<property name="jdbct4.root" value="<JDBC T4 installation directory>
For example, if the <JDBC T4 installation directory> is C:\JDBCT4,
modify the jdbct4.root property to:
<property name="jdbct4.root" value="C:\JDBCT4"/>
3. Configure the JDBC driver for the NonStop SQL/MX database.
1. Go to the <NonStop SASH Dist Home>\spring\samples\imagedb\war\
WEB-INF\ directory on your Windows system.
2. Modify the jdbc.properties file to update the JDBC configuration. You can use
either the JDBC/MX Type 2 driver or the JDBC/MX Type 4 driver. The SQL/MX settings
for each of them is as follows:
If you plan to use the JDBC/MX Type 2 driver, uncomment the SQL/MX settings
for the JDBC Type 2 driver in the jdbc.properties file, so that the SQL/MX
settings for the JDBC Type 2 driver appear as:
#---------------------------------------------------
-------------------
#common settings
#
imageDatabase.lobHandler=defaultLobHandler
jdbc.blobTableName=imagedbcat.imagedbsch.blobTableName
jdbc.catalog=imagedbcat
jdbc.schema=imagedbsch
#---------------------------------------------------
-------------------------
#SQL/MX Settings for JDBC Type 2 Driver
jdbc.driverClassName=com.tandem.sqlmx.SQLMXDriver
jdbc.url=jdbc:sqlmx://
jdbc.username=
jdbc.password=
60 Installing Spring Framework