Generating Java Runtime Code Templates
To access a component interface through external APIs using Java, PeopleSoft Application Designer generates a template in the form of boilerplate Java code that you can adapt to your purposes.
External Java APIs are located in the <PS_CFG_HOME>\ExtAPI_Java directory.
This section describes how to generate the template code.
This example illustrates using PeopleSoft Application Designer to generate a Java runtime template.

To generate a Java template for a component interface:
-
Open a component interface definition in PeopleSoft Application Designer.
-
Right-click anywhere in the definition view to display the menu.
-
Select Generate Java Template.
When the template is successfully generated, a message appears stating the name and location of the template file.
Note:
The template file is generated in the directory specified by the TEMP or TMP system environment variable on your client machine.
-
Edit the generated file and modify the source code to suit your needs.
-
Compile the source code to generate a class file.
In the case of the example used in this manual, you could use this command:
javac −classpath c:\temp;c:\pt8\class;c:\PT8\class\psjoa.jar SDK_BUS_EXP.java