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 ..................................................................... 33
Purpose ............................................................................................................................. 33
Implementation .................................................................................................................. 33
External Credits ........................................................................................................................... 35
Running Parallels H-Sphere in Debug Mode .............................................................................. 36
Script Runner ............................................................................................................................... 37
Windows Hosting Resources 38
Creating Resources for Winbox ................................................................................................... 39
Introduction ........................................................................................................................ 39
Requirements .................................................................................................................... 39
Naming Conventions ......................................................................................................... 39
General Scheme of Resource Functioning ....................................................................... 40
Methods ............................................................................................................................. 41
Keys ................................................................................................................................... 42
Error Handling ................................................................................................................... 43
Resource Hierarchy ........................................................................................................... 44
Logging .............................................................................................................................. 44
Resource Types ................................................................................................................ 44
Schemas ............................................................................................................................ 45
Attributes ........................................................................................................................... 46
Crash Reporting on Winbox ........................................................................................................ 51
Crash Record File Structure .............................................................................................. 51
Detecting Crashes in Parallels H-Sphere and non Parallels H-Sphere Modules ............. 52
IIS 6.0 Native Mode ..................................................................................................................... 52
ISAPI Filters ....................................................................................................................... 53
IIS Log Plugin .................................................................................................................... 53