instructions to create a Windows service for CQ Gateway
I was able to successfully create a Windows service to start/stop Jazz server by following instructions in this page (https://jazz.net/wiki/bin/view/Main/RunningJazzAsAService).
I tried to follow the same instructions to create a Windows service to start/stop CQ Gateway on the SAME server. In fact, I was able to create this second Apache Tomcat server usign a different name. However, I was not able to modify the service properties (e.g. JVM) by using tomcat5w.exe. Tomcat5w.exe always opens the 1st service.
Could anyone please comment on how to update properties for the second service? Thanks.
In addition, the instruction tells users to "Edit C:\jazz\server\teamserver.properties to make the DB location a absolute path name. (ie, change the value of with db.jdbc.location to C:/jazz/server/repositoryDB)". Is this still necessary in beta3? Thanks.
I tried to follow the same instructions to create a Windows service to start/stop CQ Gateway on the SAME server. In fact, I was able to create this second Apache Tomcat server usign a different name. However, I was not able to modify the service properties (e.g. JVM) by using tomcat5w.exe. Tomcat5w.exe always opens the 1st service.
Could anyone please comment on how to update properties for the second service? Thanks.
In addition, the instruction tells users to "Edit C:\jazz\server\teamserver.properties to make the DB location a absolute path name. (ie, change the value of with db.jdbc.location to C:/jazz/server/repositoryDB)". Is this still necessary in beta3? Thanks.
4 answers
We were able to create Windows services by following instructions at https://jazz.net/wiki/bin/view/Main/RunningJazzAsAService, with some minor modification.
Create a Windows service for the Jazz server
1. From the command line, cd to \Program Files\IBM\JazzTeamServer\server\tomcat\bin
2. Run service.bat install JServerxxxx. The remove it, run service.bat remove.
Probably do not need to do this any more: Edit C:\jazz\server\teamserver.properties to make the DB location a absolute path name. (ie, change the value of with db.jdbc.location to C:/jazz/server/repositoryDB)
3. Run tomcat5w.exe //ES//JServerxxxx
4. On the 'Java' tab, uncheck 'Use default'.
5. Change the 'Java Virtual Machine' path to be D:\Program Files\IBM\JazzTeamServer\server\win32\ibm-java2-i386-50\jre\bin\j9vm\jvm.dll
6. Add a line at the bottom the 'Java Options' text field with this content
-Dcom.ibm.team.server.configURL=file:///D:\Program Files\IBM\JazzTeamServer\server\teamserver.properties
7. tChange the "Maximum memory pool" size to be 700
8. On the 'Startup' and 'Shutdown' tabs, make sure the 'Mode' setting is 'jvm'
9. On the 'General' tab you can change the 'Startup type' to be 'Automatic' if you want the sevice to start on it's own
10. Start the service to test out the server
Create a Windows service for the CQ connector
11. From the command line, cd to D:\Program Files\IBM\ClearQuestConnector\gateway\tomcat\bin
12. Run service.bat install CQGateway
Probably do not need to do this any more: Edit C:\jazz\server\teamserver.properties to make the DB location a absolute path name. (ie, change the value of with db.jdbc.location to C:/jazz/server/repositoryDB)
13. Run tomcat5w.exe //ES//CQGateway
14. On the 'Java' tab, uncheck 'Use default'.
15. Change the 'Java Virtual Machine' path to be D:\Program Files\IBM\JazzTeamServer\server\win32\ibm-java2-i386-50\jre\bin\j9vm\jvm.dll
16. Add a line at the bottom the 'Java Options' text field with this content
-Dcom.ibm.rational.interop.gateway.configURL=file:///D:\Program Files\IBM\ClearQuestConnector\gateway\cqconnector.properties
17. Change the "Maximum memory pool" size to be 700
18. On the 'Startup' and 'Shutdown' tabs, make sure the 'Mode' setting is 'jvm'
19. On the 'General' tab you can change the 'Startup type' to be 'Automatic' if you want the sevice to start on it's own
20. Start the service to test
Create a Windows service for the Jazz server
1. From the command line, cd to \Program Files\IBM\JazzTeamServer\server\tomcat\bin
2. Run service.bat install JServerxxxx. The remove it, run service.bat remove.
Probably do not need to do this any more: Edit C:\jazz\server\teamserver.properties to make the DB location a absolute path name. (ie, change the value of with db.jdbc.location to C:/jazz/server/repositoryDB)
3. Run tomcat5w.exe //ES//JServerxxxx
4. On the 'Java' tab, uncheck 'Use default'.
5. Change the 'Java Virtual Machine' path to be D:\Program Files\IBM\JazzTeamServer\server\win32\ibm-java2-i386-50\jre\bin\j9vm\jvm.dll
6. Add a line at the bottom the 'Java Options' text field with this content
-Dcom.ibm.team.server.configURL=file:///D:\Program Files\IBM\JazzTeamServer\server\teamserver.properties
7. tChange the "Maximum memory pool" size to be 700
8. On the 'Startup' and 'Shutdown' tabs, make sure the 'Mode' setting is 'jvm'
9. On the 'General' tab you can change the 'Startup type' to be 'Automatic' if you want the sevice to start on it's own
10. Start the service to test out the server
Create a Windows service for the CQ connector
11. From the command line, cd to D:\Program Files\IBM\ClearQuestConnector\gateway\tomcat\bin
12. Run service.bat install CQGateway
Probably do not need to do this any more: Edit C:\jazz\server\teamserver.properties to make the DB location a absolute path name. (ie, change the value of with db.jdbc.location to C:/jazz/server/repositoryDB)
13. Run tomcat5w.exe //ES//CQGateway
14. On the 'Java' tab, uncheck 'Use default'.
15. Change the 'Java Virtual Machine' path to be D:\Program Files\IBM\JazzTeamServer\server\win32\ibm-java2-i386-50\jre\bin\j9vm\jvm.dll
16. Add a line at the bottom the 'Java Options' text field with this content
-Dcom.ibm.rational.interop.gateway.configURL=file:///D:\Program Files\IBM\ClearQuestConnector\gateway\cqconnector.properties
17. Change the "Maximum memory pool" size to be 700
18. On the 'Startup' and 'Shutdown' tabs, make sure the 'Mode' setting is 'jvm'
19. On the 'General' tab you can change the 'Startup type' to be 'Automatic' if you want the sevice to start on it's own
20. Start the service to test