It's all about the answers!

Ask a question

OSLC URL to logout


Ragul S (1729) | asked Apr 06 '17, 5:59 a.m.

I'm using OSLC to query IBM ClearQuest from my java program using one of the CQ accounts.
CQ admin reported that there are many orphan sessions in that CQ account.
Is there any query to logout from that account once the OSLC is executed ? How to test it ?

Thanks in advance :)

One answer



permanent link
Sudipto Sarkar (631443) | answered Apr 06 '17, 6:04 a.m.

You need to fire a delete Rest call using oslc. Following snippet will do this.

boolean isReleased = false;
String cqUrl=https://servername/cqweb/oslc/session;
        DeleteMethod deleteMethod = new DeleteMethod();
        try {
            deleteMethod
                    .setURI(new URI(
                           urll,  false));
            getConnection().executeMethod(deleteMethod);
            isReleased = true;


Comments
Ragul S commented Apr 06 '17, 6:43 a.m.

Thanks for the reply :) How to check if the sessions are closed or not ?

Your answer


Register or 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.