Component Life Cycle

As stated above, calling CreateInstance causes EAServer to create a new component and manage the component's life cycle. The component life cycle is outlined in Figure 10.6. When you call CreateInstance, EAServer does not actually create a component. Instead, EAServer verifies the component exists and that the calling user has access to it. Only when the user calls one of the component's methods does the life cycle begin.

Figure 10.6. Component life cycle.

The first step of the life cycle occurs when EAServer checks to see whether an instance of the needed component exists in the instance pool. If one does, EAServer will bind ...

Get PowerBuilder® 9: Internet and Distributed Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.