You can specify a control interface to be implemented by your component as described in “Configuring a control interface”. At runtime, EAServer calls the control interface methods to indicate changes in the instance lifecycle. For example, if you use CtsComponents::ObjectControl:
The setObjectContext method provides an ObjectContext instance. Among other features, the object context allows you to:
Control transactions.
Obtain the component’s EAServer Manager properties, allowing you to read user-defined properties in EAServer Manager.
The ctsActivate method indicates that the instance has been bound to a client session.
The ctsDeactivate method indicates that the instance has been unbound from a client session.
You can also implement CORBA components that use the EJB session or entity design pattern using the CtsComponents::ObjectControl control interface. For more information on these methods, see the generated CtsComponents::ObjectControl HTML documentation in the html/ir directory of your EAServer installation.
Copyright © 2005. Sybase Inc. All rights reserved. |