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.

Option to generate Java runtime template in Application Designer

To generate a Java template for a component interface:

  1. Open a component interface definition in PeopleSoft Application Designer.

  2. Right-click anywhere in the definition view to display the menu.

  3. 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.

  4. Edit the generated file and modify the source code to suit your needs.

  5. 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