It's all about the answers!

Ask a question

Calling service from another service in a different thread


Tami Takamiya (2011110) | asked Jul 29 '10, 9:12 p.m.
JAZZ DEVELOPER
I am trying to call a service from another service. It works fine if the call is made from the main thread of caller's service. However, if the call is made from a separate thread, the PermissionDeniedException was thrown, like
====
com.ibm.team.repository.common.PermissionDeniedException: The user "<Unknown>" is not authorized to perform the operation. The "JazzUsers" role is required to perform this operation.
====
Is there any workaround for this? Thanks, Tami

One answer



permanent link
Jared Burns (4.5k29) | answered Aug 11 '10, 9:15 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
On Fri, 30 Jul 2010 01:22:56 +0000, tamichan wrote:

I am trying to call a service from another service. It works fine if
the call is made from the main thread of caller's service. However, if
the call is made from a separate thread, the PermissionDeniedException
was thrown, like ====
com.ibm.team.repository.common.PermissionDeniedException: The user
"<Unknown>" is not authorized to perform the operation. The "JazzUsers"
role is required to perform this operation.
====
Is there any workaround for this? Thanks, Tami

You shouldn't spawn your own threads on the server.

- Jared
-----------------------
Jazz Team Process

Comments
Amaury Quintero commented Jun 03 '14, 5:48 a.m.

What if I need to process a very huge result set and I want every page being resolved in a different thread in order to pass control to the user as soon as possible? There is a way to do that without creating a thread or job? I have the same problem when I try to resolve workitem references inside the job. Hope you can help us!! thanks!! 

Your answer


Register or to post your answer.