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
|
One answer
Ralph Schoon (63.3k●3●36●46)
| answered Jan 05 '17, 4:13 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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.
|
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.