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

Reset server using API

Hi,
is there a way to request server reset using REST or Plain Java API?

Thanks,
Michele.

0 votes


Accepted answer

Permanent link
It seems class com.ibm.team.repository.provision.internal.restcmd.ResetOSGiRestCommand could be used...
Michele Pegoraro selected this answer as the correct answer

1 vote

Comments

Great! I'll try it. Thanks Davide ;-) 


One other answer

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

0 votes

Comments

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,
Yes, there is reset button but it does not reset server. The button sets the flag to reset calculating bundles when the server is restarted next time. This is useful when you install any hotfix.
I have created a defect some time ago about confusing name: https://jazz.net/jazz/web/projects/Jazz%20Foundation#action=com.ibm.team.workitem.viewWorkItem&id=170900. Anywya it has been closed with the explanation that this is internal page and you must know how to access it first.
Feel free to comment in the bug your own confusion.

Best regards,
Krzysztof Kazmierczyk

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.

 

why can't you call the requestreset http function?

https://server:port/ccm/admin/requestReset

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
× 10,938
× 58
× 40

Question asked: Dec 23 '11, 9:58 a.m.

Question was seen: 6,319 times

Last updated: Aug 06 '14, 1:30 p.m.

Confirmation Cancel Confirm