EAServer explicitly destroys pooled component instances before the server shuts down. This allows you to perform cleanup operations in your component, such as closing database connections. You can set the following server and component properties to change this behavior:
com.sybase.jaguar.server.destroyPooledInstancesOnShutdown for
the server specifies whether to destroy pooled component instances
when shutting down. A value of true
indicates
that pooled instances must be destroyed explicitly before shutting
down. For example, an EJB component’s ejbRemove method
is called. This allows the pooled instance to clean up resources,
such as closing database connections. A value of false
specifies
that instances are not destroyed. The default is true
.
If many component instances are pooled, explicit destruction of instances may lengthen the time required to shut down or restart the server.
You can override the setting for individual components by setting the com.sybase.jaguar.component.destroyPooledInstancesOnShutdown component property.
com.sybase.jaguar.server.destroyPooledInstancesOnShutdownTimeout for the server specifies how long to wait for each instance destruction method to return when destroying pooled instances during server shutdown. The value specifies the time to wait, in seconds. If no value is specified, the default is 5. You can override the setting for individual components by setting the component property com.sybase.jaguar.component.destroyPooledInstancesOnShutdownTimeout.
Set these properties on the Advanced tab in the Server Properties or Component Properties dialog boxes.
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |