Page History
Advanced Features Related to Servoy Server Administration and Solution Import
Maintenance Mode
Maintenance mode is a special mode of operating Servoy Server. While Servoy Server is in maintenance mode, no new clients can connect to it. This is useful when performing certain administrative tasks, like solution imports.
...
You can programmatically put the Server into maintenance mode, or bring it out of maintenance mode, by using the maintenance
plugin. Please refer to the maintenance
plugin API documentation for details about how to do that.
Solution Import Hooks
During solution import from the Servoy Admin Page, modules with certain name patterns are handled in a special way. Modules whose names start with "before_import" are handled as pre-import hooks. Their onOpen
event handlers are executed before the solution is actually imported. Similarly, modules whose names start with "after_import" are handled as post-import hooks. Their onOpen
event handles are executed after the solution is actually imported.
...
During the execution of the onOpen
event handlers from the pre-import and post-import hooks, any output printed with application.output
will be redirected to the import log, which you can see in the Servoy Admin Page.
A simple example
Suppose you have a solution called "import_sample_01", with two modules called "before_importsample_01" and "after_import_01". The "before_importsample_01" module has the following onOpen
event handler:
...
after all messages related to the actual solution import.
What else can you do? The maintenance
plugin.
The pre-import and post-import hooks were introduced for allowing you to automatically perform administrative tasks on the server while importing solutions:
...