Reset server using API
Michele Pegoraro (1.8k●14●119●103)
| asked Dec 23 '11, 9:58 a.m.
edited Jul 25 '13, 3:46 a.m. by Krzysztof Kaźmierczyk (7.5k●4●80●103)
Hi,
is there a way to request server reset using REST or Plain Java API? Thanks, Michele. |
Accepted answer
It seems class com.ibm.team.repository.provision.internal.restcmd.ResetOSGiRestCommand could be used...
Michele Pegoraro selected this answer as the correct answer
|
One other answer
Hi Michele,
CLM server itself does not provide this function. I do not expect that Tomcat support that function (unless there is a defect there :)) Also didn't find this function in WAS. You might consider WAS support for that. Best regards, Krzysztof Kazmierczyk Comments
Michele Pegoraro
commented Aug 01 '13, 3:24 a.m.
I'm a little bit confused: I was thinking that this is not a WAS/tomcat task. I'm talking about that RESET button on the https://localhost:9443/ccm/admin?internal#action=com.ibm.team.repository.admin.serverReset url. Is this a CLM function, isn't it?
Thanks,
Michele.
Hi Michele,
Michele Pegoraro
commented Aug 01 '13, 3:50 a.m.
Ok, this is clear for me. I use this function in order to provide server extension. I was looking for a method to launch this "reset" in order to create an automatic deploy script for RTC so I can deploy my extensions automatically. I've seen that this function removes a single file (built-on.txt) from tomcat/was. This seems to work but sometimes if I remove this file and restart the server I have some problem with the shutdown phase (with tomcat), so I was wondering if it does something else. Generally I think that it would be better if there was an API method (REST or JAVA) to call this functionality.
Thanks for the link to the defect.
sam detweiler
commented Aug 06 '14, 1:30 p.m.
why can't you call the requestreset http function?
|
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.