Registering Directory Server Enterprise Edition 7.0 With Windows Services
By mcraig on Nov 20, 2009
Install as described in Installing Directory Server Enterprise Edition 7.0.
Log on as Administrator or a member of the local group of Administrators.
Register Directory Server instances.
This same procedure also works with dpadm for Directory Proxy instances.
C:\\Program Files\\Sun\\dsee7\\bin>dsadm stop C:\\DirectoryServer Directory Server instance 'C:/DirectoryServer' stopped C:\\Program Files\\Sun\\dsee7\\bin>dsadm enable-service --type WIN_SERVICE C:\\DirectoryServer Instance C:/DirectoryServer registered in WIN_SERVICE C:\\Program Files\\Sun\\dsee7\\bin>dsadm info C:\\DirectoryServer Instance Path: C:/DirectoryServer Non-secure port: 1389 Secure port: 1636 Bit format: 32-bit State: Stopped DSCC url: - Windows service registration: Enabled Instance version: D-A10
Do not forget the DSCC Registry instance.
C:\\Program Files\\Sun\\dsee7\\bin>dsadm stop ..\\var\\dcc\\ads Directory Server instance 'C:/Program Files/Sun/dsee7/var/dcc/ads' stopped C:\\Program Files\\Sun\\dsee7\\bin>dsadm enable-service --type WIN_SERVICE ..\\var\\dcc\\ads Instance C:/Program Files/Sun/dsee7/var/dcc/ads registered in WIN_SERVICE
Register your Application Server as a Windows Service.
How to do this depends on your Application Server. With GlassFish this was so easy I have already forgotten.
Register the Common Agent Container as a Windows Service.
C:\\Program Files\\Sun\\dsee7\\bin>cacaoadm enable --instance default --file pwd.txt
The pwd.txt file contains the password of the current user, such as Administrator.
Important Note: As of this writing, Nov. 20, 2009, Sun is still working on an issue with Common Agent Container in DSEE 7.0 that can crash upon system restart. So until there's a service pack for that, you will need to restart the Common Agent Container by hand after reboot.
For belt-and-suspenders style administration, after this works you can also provide the password through the Log On tab of the Properties window for the Common Agent Container service in the Services management console. (Run... services.msc)