Application server component wizards

Develop and deploy PowerBuilder NVOs as application server components using application server component wizards and projects in the PowerBuilder development environment.

There are three application server component wizards, which are available from the Target, PB Object, and Project pages in the New dialog box.

Target

From the Target page, the Application Server Component wizard creates a new PowerBuilder application server target, a PowerBuilder library (PBL), and a PowerBuilder custom class user object (NVO). It also creates a project from which you deploy the component to the server.

In the wizard, specify the properties of the application server component, including the profile of the server to which you want to deploy, a package name, transaction properties, and whether the components should be deployed as a Web service. For details, see “Specifying component properties”.

When you complete the wizard, open the NVO in the User Object painter, add methods to your component’s interface, and write scripts for events. The object has two pairs of events: Activate and Deactivate, and Constructor and Destructor. You typically use the Activate and Deactivate events to control instance pooling. For more information, see “Controlling the state of a pooled instance”.

PB Object

To add additional objects to the same target, and optionally, to the same PBL, package, and project, right-click the application server target in the System Tree, select New, and complete the Application Server Component wizard from the PB Object page of the New dialog.

Project

From the Project page, the Application Server Component wizard creates a new project to which you can add any NVOs in the current target’s library list. You might want to use this wizard to deploy a set of components to more than one application server.