Welcome to the Jazz Community Forum
Calling service from another service in a different thread

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
====
Is there any workaround for this? Thanks, Tami
One answer

On Fri, 30 Jul 2010 01:22:56 +0000, tamichan wrote:
You shouldn't spawn your own threads on the server.
- Jared
-----------------------
Jazz Team Process
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

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!!