Contents
Preface 5
About This Guide ........................................................................................................................... 5
Typographical Conventions ........................................................................................................... 5
Feedback ....................................................................................................................................... 6
H-Sphere System Database 7
Getting User Information from the Parallels H-Sphere System Database .................................... 8
Database Connections ................................................................................................................ 11
Regular Shared Connections ............................................................................................ 11
Connections With Opened Transaction ............................................................................ 11
Unix Hosting Resources and Tools 13
Creating Unix-Hosted Resources ................................................................................................ 14
Example: ............................................................................................................................ 19
Global Resources And Resource Dependencies ........................................................................ 24
globals.xml ......................................................................................................................... 24
resource_dependences.xml .............................................................................................. 28
List of Resource Dependencies ........................................................................................ 28
Account Preferences ................................................................................................................... 31
TimeUtils Class ............................................................................................................................ 31
FreeMarker Access Control List (FMACL) Objects ..................................................................... 32
Purpose ............................................................................................................................. 32
Implementation .................................................................................................................. 32
External Credits ........................................................................................................................... 34
Running Parallels H-Sphere in Debug Mode .............................................................................. 35
Script Runner ............................................................................................................................... 36
Windows Hosting Resources 37
Creating Resources for Winbox ................................................................................................... 38
Introduction ........................................................................................................................ 38
Requirements .................................................................................................................... 38
Naming Conventions ......................................................................................................... 38
General Scheme of Resource Functioning ....................................................................... 39
Methods ............................................................................................................................. 40
Keys ................................................................................................................................... 41
Error Handling ................................................................................................................... 42
Resource Hierarchy ........................................................................................................... 43
Logging .............................................................................................................................. 43
Resource Types ................................................................................................................ 44
Schemas ............................................................................................................................ 44
Attributes ........................................................................................................................... 45
Crash Reporting on Winbox ........................................................................................................ 49
Crash Record File Structure .............................................................................................. 49
Detecting Crashes in Parallels H-Sphere and non Parallels H-Sphere Modules ............. 50
IIS 6.0 Native Mode ..................................................................................................................... 50
ISAPI Filters ....................................................................................................................... 51
IIS Log Plugin .................................................................................................................... 51