+

Search Tips   |   Advanced Search

Handle termination and cleanup for critical errors

There are a number of methods that allow detecting and handling of Security Directory Integrator internal errors, as well as errors occurring in SDI Connectors, Parsers, Function Components and so on. These methods include:

The JVM shutdown Hook feature improves the reliability of the Server. Java shutdown Hooks allow a piece of code to perform some processing after Control-C is pressed, or when the JVM is shutting down for some other reason, even System.exit. We can specify an external program to be started when the JVM is shutting down. This external program is started from within the JVM shutdown Hook. This external program is configured using an optional property in the global.properties or solution.properties file:

jvm.shutdown.hook=<external application executable>
Shell scripts and batch files can also be specified as the value of this property.

When the JVM shutdown Hook is called, nothing can be done to prevent the JVM termination. However, with the execution of an external program it is possible to perform customizable operations: for example, sending a message that the SDI server has terminated, carrying out clean up operations, or even restarting a new server if so desired.


Parent topic:

AssemblyLine flow and Hooks