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