Customize the creation and destruction of components

To customize what happens when a component instance is created or destroyed, write customized code into the create (create.c.new) and destroy (destroy.c.new) routine templates that are generated by EAServer Manager. create and destroy are typically used to manage instance-specific data that the component requires. For example, some methods might need to be executed in a certain sequence. You can customize the create and destroy routines to keep track of which methods have been executed. For details on managing instance-specific data, see “Components that require instance specific data”.

The create and destroy routines are optional. You can also implement create and destroy in another source file and ignore the generated templates. The create and destroy routines cannot have parameters and cannot return result sets.