Application Development |
In both two-tier and three-tier applications, you need to prepare your client workstations for development. This chapter describes the steps and the changes you can make to the default Panther settings for your project.
For information on setting up web application servers (which operate as Panther clients in a three-tier environment), refer to Chapter 2, "Web Application Setup," in Web Development Guide.
For information about setting up development clients using Panther for IBM WebSphere, refer to "How to Set Up the Development Client" in Panther for IBM WebSphere Developer's Studio.
Copy Your Panther Distribution |
You need to make a copy of your Panther distribution for each project. This has the following benefits:
For a description of the directory structure in a Panther distribution, refer to Chapter 2, "Understanding the Panther Distribution."
Configure Your Panther Application |
To configure your Panther application, you need to perform the following steps:
Panther uses setup variables to point to the Panther installation, other setup files, and other files required by the application, such as libraries. Each developer must set the following setup variable either in their environment or in the Windows initialization file for Panther:
Specify Your Panther Environment
smvars.bin
, the file containing your configuration settings, in the config subdirectory of this location. If smvars.bin
is not located at $SMBASE/config/smvars.bin
, then you also need to set the variable SMVARS
.
Other common variables are:
You can change other configuration settings as needed by your project:
Colors in your Panther application can be set by:
The name of the configuration map file varies for the different environments:
wincmap
Run cmap2bin after making any changes to these files.
Panther messages are defined in If you are going to deploy your application on multiple platforms, such as Windows and character-mode, you need to be aware of the following settings.
Message File
msgfile.bin
. (The ASCII equivalent is msgfile
.). Refer to "Using Message Files," in Application Development Guide for details about message files.
Multiple Platforms
If you want to write your own C functions, you will need access to a C compiler so that you can rebuild your Panther executable after installing the functions.
To use Java methods for event processing, you must have access to the JDK during development. When the application is deployed, the application clients must have access to the JRE. The location of the Panther classes ( In JetNet and Oracle Tuxedo environments, you can have remote access for libraries and the repository. This allows for greater conformity during application development.
In a UNIX environment, you need to distribute the environment settings and create symbolic links or scripts in order to run the executables for each local client. For JetNet/Oracle Tuxedo applications, there are setup files available in In a Windows environment where each developer can have a separate copy of the programs, you need to devise a method for each developer to access the master copy of the application files.
It is suggested that you create an application directory for the project on the client, the web application server, and the application server (for JetNet, Oracle Tuxedo and WebSphere). This provides a default location for all your libraries and external programming code (C, Java, JPL).
Programming Functionality
$SMBASE/config/pro5.jar
) is automatically added at runtime; however, you must specify the location of your own class files in the CLASSPATH
environment setting.
Remote Library Access
Distribute the Setup to the Client Workstations
$SMBASE/samples/newapp
.
Create an Application Directory