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

Server side: Calling RTC service from different thread

A Deliver operation participant is trying to process some files being delivered.

In the operation participant, Trying to parallel some file processing, 
a new class extending thread was created.

The class constructor received the following parameters:
IVersionableHandle fileToProcess, and IScmService scmService.

After the thread was started,
a call to
IVersionable v = scmService.fetchState(fileToProcess, null, null);
was made.
This resulted with the following exception:
com.ibm.team.repository.common.PermissionDeniedException: User GUEST is not allowed to read state _M2NUtMYGEeaXSfH6YaeXiQ

Trying to run the same call 
( IVersionable v = scmService.fetchState(fileToProcess, null, null); )
from the thread that was invoked by the server,
inside the run method of the IOperationParticipant
was successful.
 
Is there a way to perform the service calls from a different thread ?

Thanks

0 votes



One answer

Permanent link
Your problem seems to be related to meta information that is lost. As far as I can tell, there is a Job API that allows to run Jobs and I assume it is possible to run them on different threads. I have no examples, you would have to search how the Job API is used.

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
× 10,926
× 25
× 3

Question asked: Dec 20 '16, 5:44 a.m.

Question was seen: 2,717 times

Last updated: Jan 05 '17, 4:13 a.m.

Confirmation Cancel Confirm