HP-UX Java™ – How To Develop Java Applications for HP-UX HP Part Number: 5900-1302 Published: January 2011 Edition: 1.
© Copyright 2007, 2011 Hewlett-Packard Development Company, L.P. Confidential computer software. Valid license from HP required for possession, use or copying. Consistent with FAR 12.211 and 12.212, Commercial Computer Software, Computer Software Documentation, and Technical Data for Commercial Items are licensed to the U.S. Government under vendor's standard commercial license. The information contained herein is subject to change without notice.
Table of Contents 1 Introduction................................................................................................................................4 Structure of typical applications...........................................................................................4 Choices for development platform.......................................................................................5 Prepare HP-UX for Java™ deployment....................................................................
1 Introduction This paper describes the mechanics of developing or porting an application to run on or be hosted by an HP-UX server. The information is applicable to both HP9000 PA-RISC and HP Integrity (Itanium) platforms. The paper presents several alternatives for the development platform and recommends a number of development tools for each of the alternatives. The Development lifecycle is discussed, including the steps of code creation, source code control, debugging, and performance tuning.
used to interact programmatically with the end user in a manner that is not available in the simple html language. Servlet - A Java™ program that runs on a server machine within the context of a web server. JSP - Java™ Server Pages - This is Java™ code embedded in html and executed as a servlet. J2EE - Java™ 2 Enterprise Edition. This is a Java™ specification that defines the functionality and interfaces for Java™ Server Pages and Enterprise Java™ Beans.
• application runs in its target environment on the HP-UX server. Typical desktop workstation operating systems include Windows, Linux, and Unix. Develop on another platform and port to HP-UX. In this environment, the development platform can be any machine that supports a compatible version of the Java™ Runtime Environment, i.e., the Java™ Virtual Machine and associated class libraries.
Recommended IDE tools for this environment are Together ControlCenter and Metrowerks' Code Warrior One advantage of development on a Windows (or Linux or Unix) desktop workstation with remote targeting is that these desktops support a large number of Java™ analysis tools that can be used to validate the source code. An excellent example of this is the Jtest product from ParaSoft.
• • to use than JDB. However, JDB is free. For further information on JDB visit the web site www.java.sun.com/products/jdk/1.1/docs/tooldocs/solaris/jdb.html All of the IDEs contain sophisticated debuggers with graphical interfaces. They tie directly into the source code and provide excellent symbolic debugging capability. This makes them the easiest and most efficient means of debugging a Java™ program. Any of the IDEs recommended above will provide good debuggers.
For a collection of techniques, tuning guidelines, tips and general information about Java™ performance tuning, go to the Java™ performance tuning website on DSPP. Testing for Performance and Reliability Stress testing is normally done by using tools that simulate a larger number of clients simultaneously accessing the web server and the back-end parts of the application. There are several excellent tools available that provide this load from a client platform (usually a Windows-based platform).
Source code control The source control system that is chosen should be compatible with the development tools that will be used on the project, as well as with the development platform itself (Windows, Linux, Unix). Small project teams working on Windows platforms will find Visual SourceSafe (VSS) to be a very convenient product for managing their source. VSS is available for purchase from Microsoft. However other companies provide clients that give users web access via secure connections.
2 Development Tools to Deploy Applications on HP-UX Development Lifecycle HP has developed a number of tools to simplify the development and deployment of applications on HP-UX systems. In addition, HP has established partnerships with leading tool vendors to make the best-in-class tools available for use with HP-UX. These tools cover the complete development lifecycle.
representation of the code, code generation, and debugging using the HP JVM for HP-UX. It can also be run on NT, Linux, or several other platforms and the resulting code can be moved to HP-UX and run on the HP JVM for HP-UX. This IDE supports applets, servlets, and JavaBeans. Simplicity for Java™ Professional Edition is an advanced J2SE visual programming tool that provides everything developers need to build robust J2SE applications.
It requires a profile file for startup on HP-UX which can be found in this document. The emacs editor and Java™ macro can be downloaded from the following public sites: • The latest version of FSF emacs on UNIX platforms is at http://directory.fsf.org/ emacs.html • Emacs for NT can be found at http://www.gnu.org/software/emacs/windows/ ntemacs.html. This site also has a good FAQ about Emacs. Documentation can be found on the GNU Emacs website at: http://directory.fsf.org/ emacs.html.
HPjmeter also features the following functionality: • Automatic problem detection and alerts • Dynamic real-time display of application behavior • Drill down into application profile metrics • Integrated, in-depth garbage collection analysis For more information on HPjmeter, see the website HPjmeter Downloads and Documentation HP TransactionVision HP TransactionVision is an end-to-end business transaction management solution.