About service components

A service component performs background processing for EAServer clients and other EAServer components. EAServer loads service components at server start-up time.

When you mark a component as a service component in one of the PowerBuilder wizards, PowerBuilder installs the component as a service in EAServer at deployment time.

Shared or not shared

When you create a service component, the wizard marks the component as shared. If you want more than one instance of a service component, you can change that setting in the Project painter. Select the number of instances you want in the Create Instances spin control on the Components page of the EAServer Component Generator property sheet in the Project painter. Notice that when you change the number of instances to a number greater than one, the Concurrency and Automatic Demarcation/Deactivation are checked. This is to ensure that the component does not encounter threading issues in EAServer. For more information, see “Threading issues and component types”.

Functions for service components

The PowerBuilder wizards include three additional functions for a service component. These functions are defined in the CTSServices::GenericServices interface and allow you to control the behavior of background processes associated with the service: