Question & Answer
Question
This technote provides information about how to configure your IBM Forms server to support multiple applications on a single server to use different JVMs.
Answer
Every IBM Forms Server - API application that is deployed on a server can refer to its own prefs.config file. The prefs.config file contains the path to the JVM to be used.
There are three parameters for the DTK.Initialize function:
- A unique name that describes the application,
- A version number associated to the application
- The version of the API to be initialized.
We will be using the first two parameters in this procedure.
Steps:
1. Create a folder within "/etc/PureEdge" that is named as <appname> <version>. For example, for the sample portlet application that ships with the API, you would name this folder "FormViewPortlet 1.0".
Note that the complete version number, as listed in the initialize call, is not used here; we are only specifying the first two digits of the version number.
2. Create a prefs folder inside of the folder you created in Step 1.
3. Create a prefs.config file that points to the JVM that will be used for this sample application (for example, within /etc/PureEdge/FormViewPortlet 1.0/prefs)
You can also have a "default" prefs.config that is used by all other applications. It is up to you whether to explicitly create folders for each application, or to have a default file and then only folders for the applications that must point to separate JVMs.
When the API is initialized, it always looks for the prefs.config file in the following order:
on Microsoft Windows
1. In the application's directory for the current user
C:\Documents and Settings\<username>\Application Data\PureEdge\<appname> <appversion>\prefs
2. In the default location for the current user
C:\Documents and Settings\<username>\Application Data\PureEdge\API 7.0\prefs
3. In the application's directory for all users
C:\Documents and Settings\All Users\Application Data\PureEdge\<appname> <appversion>\prefs
4. In the default location for all users
C:\Documents and Settings\All Users\Application Data\PureEdge\API 7.0\prefs
on Unix platforms
1. In the application's directory
/etc/PureEdge/<appname> <appversion>/prefs/prefs.config
2. In the default directory
/etc/PureEdge/API 7.0/prefs/prefs.config
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21240758