Manual
1. Download DIALECT file from Scout for NonStop Servers.
2. Add .zip extension to it.
3. Extract DIALECT.zip file to a location on your Windows system.
The SQL/MX-Hibernate-Dialect folder containing hibernate3sqlmx.jar appears.
NOTE: If you have already extracted the SAMPLE file from Scout for NonStop Servers, you
can get the hibernate3sqlmx.jar file at <My SASH Home>\hibernate\sqlmxdialect.
Your Hibernate distribution is now ready to be transferred to your NonStop system.
NOTE: hibernate3sqlmx.jar is the Hibernate dialect file for SQL/MX database that maps
Hibernate queries (HQL) to SQL/MX specific queries.
Copying Hibernate Distribution from Windows to NonStop
To copy the Hibernate distribution from your Windows system to your NonStop system, complete
the following steps:
1. Go to <Hibernate Home> and create a JAR of the <Hibernate Home>\lib directory
on your Windows system using the command:
command prompt> cd “<Hibernate Home>”
command prompt> jar –cvf hibernate_lib.jar lib
For example:
command prompt> cd “C:\hibernate-3.2”
command prompt> jar –cvf hibernate_lib.jar lib
2. Create a version-specific Hibernate directory <NonStop Hibernate Home> in the OSS
environment on your NonStop system using the command:
OSS> mkdir -p <NonStop Hibernate Home>
For example, create a directory structure /usr/tandem/sash/hibernate-3.2.6 as
follows:
OSS> mkdir -p /usr/tandem/sash/hibernate-3.2.6
3. Copy the hibernate_lib.jar and hibernate3.jar files from your <Hibernate
Home> to <NonStop Hibernate Home> and extract hibernate_lib.jar using the
OSS command:
OSS> cd <NonStop Hibernate Home>
OSS> jar –xvf hibernate_lib.jar
After extraction, <NonStop Hibernate Home> must have the <NonStop Hibernate
Home>/lib sub-directory.
NOTE: The contents of the <NonStop Hibernate Home>/lib directory on your
NonStop system must be exactly same as the <Hibernate Home>\lib directory on your
Windows system.
This completes the installation of Hibernate framework libraries on your NonStop system. You
can use these libraries when developing and running Hibernate applications on a NonStop
system.
Deploying and Running Sample Hibernate Application on NonStop
The sample application available in the Hibernate distribution is called Caveat Emptor.
Deploying and Running Sample Hibernate Application on NonStop 299