Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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.

0 votes



4 answers

Permanent link
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

0 votes


Permanent link
There is also a wiki page on running the CQ Gateway as a service:

https://jazz.net/wiki/bin/view/Main/RunningGatewayAsAService

Looks like it's basically what you did, although you may want to add the configuration variable for the log4j.properties file.

John
Jazz ClearQuest Connector Team

0 votes


Permanent link
Thanks, John.

I will add the line into my service configuration. I actually worked together with Richie for a coule of hours in Jazz Cafe in RSDC to figure out the procedure. He was very helpful.

0 votes


Permanent link
Note that I just updated the page - I noticed that the JVM property settings weren't quite right (missing /gateway in the pathnames).

John
Jazz ClearQuest Connector Team

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: May 31 '08, 5:06 a.m.

Question was seen: 4,682 times

Last updated: May 31 '08, 5:06 a.m.

Confirmation Cancel Confirm