If the FastObjects server has to start automatically after a computer is turned on, i.e., before the user is logged on, it will have to be installed as a service.
Note:
Under Windows 7 and Windows Server 2008, the server has to be started as Administrator; otherwise, the setup as a service will be denied by Windows.
Setting up the DB server as a service:
- Open the window of the FastObjects server by double-clicking in the taskbar.
- Activate the console output via Options > Output to Window.
- Select Options > Configure as Service....
- Confirm with [OK].
- In the dialog Service Configuration, select the option Install as Service and the check box Allow Service to Interact with Desktop.
- Confirm with [OK].
In the console, an output similar to the following should be seen:
Service 'FastObjects Server 11.0' installed.
Service will start next time you reboot.
Please make sure to have the executable and the
required DLL's accessible (in the path) at startup.
The working directory will be 'C:\WINDOWS\system32'.
The service command line is:
'C:\temp\fastobjects\dbserver\fastobjects\installFiles\FastObjectsServer.exe -config
"C:\temp\fastobjects\dbserver\fastobjects\installFiles\ptserver.cfg" '
The process will be running using the local system account.
working directory
If the paths stated in ptserver.cfg are relative, the server will start a search from the working directory, i.e., in this case C:\WINDOWS\system32.
service command line
The service command line is entered in the Windows Registry under the key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\FastObjectsServer\ImagePath. Here, the service command line must be adjusted if the FastObjects server installation is changed (e.g., moved to a different hard disk).
The change can be made via the Control Panel.
This requires the following steps:
- Press [WINDOWS] + [Pause].
- On the left margin, click Advanced System Settings.
- Click [Finish].
- Under System Variables, select the Path variable.
- Click [Edit...].
- In the Value of the variables field, add a semi-colon to the end, and behind it, the absolute path of the file FastObjectsServer.exe. The path can be obtained from the FastObjects console, from the line The service command line is:.
The start window of System Settings opens.
The System Properties dialog opens.
The Environment Variables dialog opens.
The Edit System Variable dialog opens.
Adjusting the configuration file
By default, relative paths are used in ptserver.cfg.
Therefore, the schema and database have to be addressed via absolute paths in ptserver.cfg.
[schemata\SnDbDictionary]
name=c:\EC_Server\dbserver\fastobjects\SnDbDictionary
[databases\KHSDb]
name=c:\EC_Server\dbserver\fastobjects\databases\DB
Note:
Due to the definition of the absolute paths, the path information must be changed after each move of the database.