Chapter 33: Creating Service Components
To refresh the component implementation after it has been loaded, select the component icon, and choose File | Refresh.
Components that are installed as EAServer services are not refreshed when you refresh the package or server in which they are installed. To refresh a service component, you must select the component icon and choose File | Refresh.
For refresh, EAServer reloads component instances as follows:
The server calls the stop() method.
The server waits for the run() method to return in all instances that are running as services.
The server creates a new instance and calls the start() and run() methods, in that order. If the multiple instances are specified for the service, the server loads the additional instances that are required and calls run() on each instance.
After refresh, a new instance is guaranteed not to start before previous instances have ceased running. Consequently, a service component can not be refreshed unless the run() method returns. See “Implement GenericService interface methods” for code examples that show how to coordinate the logic in the stop() and run() methods.
|Copyright © 2005. Sybase Inc. All rights reserved.|