Hibernate applications on nonstop – HP Integrity NonStop J-Series User Manual

Page 152

Advertising
background image

Standard Java Persistence object lifecycle rules

Standard Java Persistence configuration and packaging

You can implement a complete EJB3 persistence solution using Hibernate Annotations and the
Hibernate EntityManager with the Hibernate package.

NOTE:

The EJB3 specification is supported on Java 5.0 and above versions.

Hibernate Applications on NonStop

Hibernate can be used in a standalone Java application or in a Java web application using servlets
or EJB session beans.

This section describes the message flow when Hibernate is used in a Java web application that
uses the NonStop SQL/MX database and is hosted on NSJSP.

Figure 47 Hibernate Application on NonStop

A Hibernate message flows through all the components in the following sequence:
1.

An HTTP request passes through the iTP WebServer and then to the NSJSP web container.

2.

The Servlet application, which is deployed under the NSJSP web container, processes the
HTTP request and passes it to the Application layer.

3.

The Application layer passes the request to the persistence layer (that is, Hibernate). Hibernate
establishes connection with the database, performs database operations (such as create,
update, retrieve, and delete), and then returns persistent object to the application.

NOTE:

Persistent objects are the Java classes, which are mapped with database tables.

The subsequent chapters discuss installing and configuring Hibernate to customize it for your web
application development requirements.

152

Hibernate Overview

Advertising
This manual is related to the following products: