You are on page 1of 8

Data sheet

Open Source Java Frameworks


on HP NonStop

This document describes HP support for specific Open


Source Java Frameworks to enable development of
enterprise Java applications for HP Integrity
NonStop platform.

The open source community has developed many Java frameworks that substantially
simplify the task of developing enterprise Java applications. These open source
frameworks have been widely adopted by Java developers and, in many cases, have
become the de facto technology for developing enterprise Java applications, largely
replacing Enterprise JavaBeans (EJB) technology.

In order to provide this open source framework-based environment to developers


wishing to design enterprise Java applications for HP Integrity NonStop servers, specific
open source frameworks have been tested and are supported on NonStop. They are:

Spring framework
The Spring framework promotes the development of enterprise Java applications
using loosely coupled Java objects known as Plain Old Java Objects (POJOs). Spring
framework focuses on the “plumbing” of enterprise applications so that teams can
concentrate on application-level business logic, without unnecessary ties to specific
deployment environments. The rich set of functionality embedded in the Spring
framework provides capabilities that help:
• Enable loose coupling of POJO objects using a technique known as dependency
injection (DI). Using DI, an object can be “wired” to its dependent objects by
means of configuration settings without the object having to be hardwired to its
dependent objects.
Data sheet | Open Source Java Frameworks on HP NonStop

• Facilitate modularization of code dealing with cross cutting concerns using a technique known
as aspect oriented programming.
• Provide strong abstractions for working with common Java EE specifications such as JMS,
JPA, JTA.
• Impart abstractions for various database access technologies such as Java Database
Connectivity (JDBC), Hibernate, iBATIS, and so on, making the usage of these data access
technologies simpler and less error-prone. These abstractions also make it possible to replace
an application’s data access objects (DAO) that uses—say, JDBC with DAO objects that uses
Hibernate without impacting the rest of the application.
• Support both programmatic and declarative Transaction Management.
• Provide model-view-controller framework to support development of presentation services.
• Offer remote access support with which Spring Beans (POJO) can be easily accessed by remote
applications and enable Spring Beans to easily access remote applications (Spring remoting).

Spring version 3.1.0 has been tested with and is supported on Integrity NonStop servers. This
version can be obtained by downloading the file spring framework 3.1.0-with-dependencies.zip
from springsource.org/spring-framework#download.

Hibernate framework
Hibernate is an object and relational mapping (ORM) framework that simplifies the development
of JDBC application code dealing with database interactions. It also provides greater application
portability across many relational databases. Hibernate provides its own query facilities and
application programming interfaces (APIs) to generate the SQL calls necessary for object
persistence, data retrieval, and other create, read, update, and delete database operations.

Hibernate versions 3.5.1, 3.6.8, and 4.1.1 have been tested with and are supported on
Integrity NonStop servers. These versions can be can be obtained by downloading
one of the “hibernate-release-4.1.1.Final.zip”, “hibernate-release-3.6.8.Final.zip”, or
“hibernate‑release‑3.5.1.Final.zip” files.

2
Data sheet | Open Source Java Frameworks on HP NonStop

Axis2 framework
Apache Axis2 is a Web services framework that provides a Web service interface to an
application. This Web service can then be accessed either as a SOAP service or as a RESTful
service. Apache Axis2 is well integrated with Spring.

Axis2 version 1.5.2 has been tested with, and is supported on, Integrity NonStop servers.
This version can be obtained by downloading the file “axis2-1.5.2-bin.zip” from
axis.apache.org/axis2/java/core/download.cgi#a1_5_2.

MyFaces framework
Apache MyFaces is a server-side, component-based, user interface framework for Web
applications. MyFaces implements the JavaServer Faces specification, which is part of the
Java specifications from Java EE 5.0 onwards.

MyFaces version 2.0.2 has been tested with, and is supported on, Integrity NonStop servers.
This version can be obtained by downloading the file “myfaces-core-2.0.2-bin.tar.gz” from
archive.apache.org/dist/myfaces/binaries/.

Collectively, these four frameworks provide support for all the architectural layers—presentation
service layer, Web services layer, business service layer, and persistence service layer of an
enterprise application. Specifically:
• Spring framework supports the presentation service layer, Web services layer, and business
service layer, and provides abstractions for the persistence service layer.
• Hibernate framework supports the persistence service layer.
• Apache Axis2 framework supports the Web services layer.
• MyFaces framework supports the presentation service layer.

In addition, each of the four frameworks has a strong open source community as a result of the
framework’s broad adoption within the Java development community.

Key benefits
Simpler programming model
You can develop your business logic using the Spring framework by implementing your business
objects as POJOs, which are not required to implement any Spring-specific interfaces. Similarly,
application domain objects that need to be persisted to a relational database, such as NonStop
SQL/MX, can be persisted using Hibernate without requiring the domain objects to implement
any Hibernate-specific interfaces. In other words, your application domain objects can be
implemented as POJO objects too. The fact that your application objects can be implemented
as POJO objects greatly simplify application development.

There is another benefit to implementing application objects as POJOs. Because POJO objects
do not require any specialized container (such as an EJB container) for their runtime, these
objects can be functionally tested on a Java SE platform. This greatly simplifies the task of
testing POJO objects and improves test coverage and productivity.

Finally, the frameworks themselves embed many good object-oriented design patterns and
provide a consistent structure to the applications that use the frameworks. For example,
Spring’s JDBC abstractions or Hibernate’s query facilities help developers avoid tricky, and often
error-prone, boilerplate JDBC code. This leads to better quality implementation and easier
application maintainability.

3
Data sheet | Open Source Java Frameworks on HP NonStop

Open and standards based


The fact that these frameworks are open source implementations offers you freedom from
vendor lock-in. Also, the fact that application objects are POJOs means that you can switch to
another framework, or choose not to use a framework, relatively easily.

Secondly, framework-based applications are container agnostic—that is, these applications


can run on a light-weight Web container like Tomcat or run on a full-fledged Java EE Application
Server. This allows you to choose a deployment server that is better suited for the server platform.

The frameworks are also standards based. For example:


• Apache MyFaces implements the JavaServer Faces API specification, now a standard in the
latest Java EE specification.
• Apache Axis2 implements many of the Web services standards formalized by the
W3C organization.
• Hibernate implements the Java Persistence API (JPA), the standard persistence API in Java EE.

Differentiated deployment
On Integrity NonStop platforms, framework-based applications can be deployed as Web
applications on NonStop Servlets for JavaServer Pages (NSJSP), which is a value-added port
of the widely adopted Apache Tomcat server.

NSJSP provides an excellent runtime environment on Integrity NonStop servers by leveraging


NonStop TS/MP software to provide scalability and fault tolerance. It does so while maintaining
API-level compatibility with the Tomcat Servlet container. As a result, NSJSP provides a
standard execution environment for your framework-based applications while, at the same
time, it provides a scalable and fault-tolerant runtime infrastructure for your applications.

In addition, other NonStop software products, such as iTP WebServer software and the
NonStop SQL/MX database software that are involved in servicing work requests provide a
standards-based, scalable, and fault-tolerant environment.

In summary, the end-to-end path required to service a work request, from iTP WebServer in
the front-end to NonStop SQL/MX in the backend, is provided by NonStop software components
that are highly scalable and available.

4
Data sheet | Open Source Java Frameworks on HP NonStop

HP deliverables
Sample applications
Several sample applications are provided, which illustrate how to:
• Integrate NonStop TMF software with Spring’s transaction management facilities
• Integrate Hibernate’s persistence framework with a Spring application
• Use Java Persistence API (JPA) with a Spring application
• Expose a Spring Bean as a Web Service with Apache Axis2
• Integrate Apache MyFaces with Spring

To obtain the sample applications:


• Log on to NonStop eServices Portal
• Go to Scout for NonStop
• Look for T0874—this T-number product contains the sample applications
• Download the file

Hibernate dialect class for NonStop SQL/MX


Hibernate uses this dialect class to generate SQL statements optimized for NonStop SQL/MX
database. This Java class must be set as the value of the Hibernate.dialect property while
configuring Hibernate for use with NonStop SQL/MX database.

To obtain the Hibernate dialect class:


• Log on to NonStop eServices Portal
• Go to Scout for NonStop
• Look for T0873—this T-number product contains the Hibernate dialect class for NonStop SQL/MX
• Download the file

Adapter-class for NonStop TMF


This adapter readily enables applications using Spring platform transaction manager to
leverage the NonStop TMF and provides high data integrity to their business processes.

To obtain this TMF adapter class:


• Log on to NonStop eServices Portal
• Go to Scout for NonStop
• Look for T0937—this T-number product contains the TmfTransactionManager class
• Download the file

Documentation
A manual titled “Open Source Java Frameworks on NonStop User’s Guide” is available at
hp.com/go/nonstop-docs under NonStop Technical Library (HP Integrity NonStop J and
H-Series). For each of the frameworks, the manual discusses installation, configuration,
and how to get started with the framework using a sample application.

5
Data sheet | Open Source Java Frameworks on HP NonStop

Please note that the frameworks themselves are not distributed by HP. You can download the frameworks by following the URLs below:

Framework File to download URL

Spring 3.1.0 spring-framework-3.1.0.RELEASE‑with‑docs.zip springsource.org/spring-framework#download

Hibernate 4.1.1, 3.6.8 or 3.5.1 hibernate-release-4.1.1.Final.zip, sourceforge.net/projects/hibernate/files/hibernate4/4.1.1.Final/,


hibernate-release-3.6.8.Final.zip, or sourceforge.net/projects/hibernate/files/hibernate3/3.6.8.Final/, or
hibernate-release-3.5.1.Final.zip sourceforge.net/projects/hibernate/files/hibernate3/3.5.1-Final/

Axis2 1.4.1 axis2-1.5.2-bin.zip axis.apache.org/axis2/java/core/download.cgi#a1_5_2

MyFaces 1.2.5 myfaces-core-2.0.2-bin.tar.gz archive.apache.org/dist/myfaces/binaries/

Prerequisite software
• H-series OS version H06.22 or later; J-series OS version J06.11 or later; L-series OS version
L15.02 or later
Note: Please refer to the latest edition of Software Products Maintenance List (SPML) to know
the support status for different RVU versions
• NonStop Servlets for JSP 7.0 or later (optional)
Note: Orderable name for NSJSP 7.0 is NSJSP 6 Update 4
• NonStop Server for Java 6.0 or later

HP Factory Express
HP Factory Express provides customization and deployment services along with your
storage and server purchases. You can customize hardware to your exact specifications in
the factory—helping speed deployment. hp.com/go/factoryexpress

Customer technical training


Customize your IT lifecycle management, from Gain the skills you need with ExpertOne training and certification from HP. With HP NonStop
acquisition of new IT, management of existing training, you will accelerate your technology transition, improve operational performance, and
assets, and removal of unneeded equipment. get the best return on your HP investment. Our training is available when and where you need it,
hp.com/go/hpfinancialservices through flexible delivery options and a global training capability. hp.com/learn/nonstop

6
Data sheet | Open Source Java Frameworks on HP NonStop

Get the services you need


Resources HP Technology Services help you build an infrastructure that is reliable, highly available, and
rooted in best practices. For your NSASJ deployment, HP recommends the following services:
To know all about Open Source Java
Frameworks, visit: HP Critical Service (Optimized Care)—High-performance reactive and proactive support
springsource.org for additional information designed to minimize downtime. The assigned support team includes an Account Support
on Spring framework Manager (ASM). This service offers access to HP’s Global Mission Critical Solution Center, 24x7
hardware and software support, six-hour call-to-repair commitment, enhanced parts inventory,
hibernate.org for additional information on and accelerated escalation management.
Hibernate framework

ws.apache.org/axis2 for additional information HP Proactive 24 (Standard Care)—Proactive and reactive support delivered under the
on Axis2 framework direction of an ASM, offering 24x7 hardware support with four-hour onsite response,
24x7 software support with two-hour response, and flexible call submittal.
myfaces.apache.org for additional information
on MyFaces framework HP Support Plus 24 (Basic Care)—Reactive hardware and software support with remote
problem diagnosis, four-hour onsite response, and replacement parts. Software support
includes installation advisory support and software updates for HP and selected third-party
software products.

HP Installation and Start-up Services—Efficient and effective deployment of HP hardware


components.

For more information, visit: hp.com/services/nonstop.

Learn more at
hp.com/go/NonStop

7
Data sheet | Open Source Java Frameworks on HP NonStop

Sign up for updates


hp.com/go/getupdated Share with colleagues Rate this document

© Copyright 2009, 2013, 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. The
only warranties for HP products and services are set forth in the express warranty statements accompanying such products and services. Nothing herein
should be construed as constituting an additional warranty. HP shall not be liable for technical or editorial errors or omissions contained herein.
Java is a registered trademark of Oracle and/or its affiliates.
4AA2-8792ENW, March 2015, Rev. 2

You might also like