Deploying empinfo on nonstop, Running empinfo on nonstop, Developing spring jpa applications using hibernate – HP Integrity NonStop J-Series User Manual
Page 248
![background image](/manuals/397993/248/background.png)
Deploying EmpInfo on NonStop
Deploying EmpInfo on Nonstop involves creating the application WAR file on Windows and
deploying the EmpInfo WAR file in NSJSP on NonStop. For more information, see:
•
“Creating the Application WAR File on Windows” (page 87)
•
“Deploying Sample Applications on NonStop” (page 331)
Running EmpInfo on NonStop
To run EmpInfo on the NonStop system, click /<servlet directory>/EmpInfo path under
Applications in the NSJSP Manager screen.
Developing Spring JPA Applications Using Hibernate
This section describes how a Spring application can use the Java Persistence API (JPA) with Hibernate
for its database operation. This is demonstrated by modifying the EmpInfo application (developed
in the
“Getting Started with Spring” (page 38)
section) using the Eclipse Galileo IDE.
JPA combines the best features from each of the persistence mechanisms, such as serialization,
JDBC, Java Data Objects (JDO), proprietary object-relational mapping tools, object databases,
and EJB 2.x entity beans.
JPA enables you to:
•
store and retrieve persistent data
•
use advanced object-oriented concepts such as inheritance
•
avoid vendor lock-in
•
focus on relational databases
Spring provides the complete EJB container contract for JPA, allowing JPA to be used under a
Spring managed services layer (with all the AOP and DI richness of Spring) in any environment.
Because Hibernate is compliant with JPA, its features can also be leveraged within the Spring JPA
implementation.
Example of Developing Spring JPA Applications Using Hibernate
The EmpInfo application (developed in the
“Getting Started with Spring” (page 38)
section) is a
Spring application that uses Hibernate for handling database operations.
This section describes how to use JPA with Hibernate for handling the database operations of the
EmpInfo application.
Prerequisites
The prerequisites of integrating JPA with Hibernate in Spring are:
•
Basic knowledge of the Spring and Hibernate frameworks.
•
EmpInfo application (explained in the
“Getting Started with Spring” (page 38)
section)
developed on the Windows system.
•
Following software must be installed on the NonStop system:
NonStop iTP WebServer version 7.x or later
◦
◦
NSJSP version 6.1
◦
NonStop SQL/MX version 2.3
248 Integrating Frameworks