beautypg.com

17 getting started with hibernate – HP Integrity NonStop H-Series User Manual

Page 11

background image

Configuring

httpd

Processes to Handle Maximum Load................................................309

Limiting the Maximum Number of Incoming Requests....................................................311

Configuring NSJSP for Hibernate Applications.......................................................................312

Configuring SessionBasedLoadBalancing..........................................................................312
Configuring Connector Threads.........................................................................................314

Configuring the

Connector

Element...........................................................................314

Configuring the

Executor

Element.............................................................................315

Configuring TS/MP Specific Parameters.............................................................................315

NSJSP Configured with

SessionBasedLoadBalancing

Turned OFF.....................315

NSJSP Configured with

SessionBasedLoadBalancing

Turned ON......................316

Configuring Java Runtime Arguments...............................................................................317

-Xmx...............................................................................................................................317
-Xss.................................................................................................................................317
-Xnoclassgc....................................................................................................................318

Hibernate Framework Configurations for NonStop Systems.......................................................318

JDBC Driver for SQL/MX Database.........................................................................................318

Configuring the JDBC Type 2 Driver for SQL/MX Database..............................................318

Configuring the JDBC Type 2 Driver for the SQL/MX Database using

hibernate.cfg.xml

..................................................................................................318

Configuring JDBC Type 2 Driver for SQL/MX Database using

hibernate.properties

............................................................................................320

Configuring JDBC Type 4 Driver for SQL/MX Database....................................................322

Configuring JDBC Type 4 Driver for SQL/MX Database using

hibernate.cfg.xml

..................................................................................................322

Configuring JDBC Type 4 Driver for SQL/MX Database using

hibernate.properties

............................................................................................324

Database Transaction Management.........................................................................................326
Connection Pooling..................................................................................................................327

Module File Caching Configurations............................................................................................327

Configuring NonStop SQL/MX DataSource for MFC..............................................................327
Modifying the Hibernate Application......................................................................................328

17 Getting Started with Hibernate

..........................................................................329

Prerequisites..................................................................................................................................329

NonStop System.......................................................................................................................329
Windows System......................................................................................................................329

Overview of EmpIoyeeInfo............................................................................................................329

Developing EmployeeInfo on Windows using the Eclipse IDE...............................................330

Creating a New Java Project................................................................................................331
Adding Dependency

JAR

Files to the Project Library........................................................334

Creating the Package for the EmployeeInfo Application...................................................336
Creating the Class File........................................................................................................337
Creating the Main Class......................................................................................................339
Implementing the Business Logic.......................................................................................340
Creating the Hibernate Mapping File.................................................................................342
Setting Hibernate Configurations.......................................................................................345

hibernate.cfg.xml...........................................................................................................345
hibernate.properties.......................................................................................................346

Creating the EmployeeInfo Application

JAR

File...............................................................349

Setting Up NonStop Environment...........................................................................................351
Running EmployeeInfo on NonStop........................................................................................352

Table of Contents

11

This manual is related to the following products: