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

OSLC URL to logout

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 :)

0 votes



One answer

Permanent link

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;

0 votes

Comments

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

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
× 12,023
× 516
× 62
× 5

Question asked: Apr 06 '17, 5:59 a.m.

Question was seen: 2,825 times

Last updated: Apr 06 '17, 6:43 a.m.

Confirmation Cancel Confirm