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

Handling long running asynchronous jobs on RTC server

What techniques can I use to handle long running asynchronous jobs that are triggered from within a Followup action (e.g. Work Item Save Operation Participant) on the RTC server. These jobs/tasks do not need to hold up the operation itself and the guidelines for Operation Participants state that long running steps should not be called.

In separate threads, it was advised to use Eclipse Jobs in an RTC Eclipse client to do heavy processing. Is there a similar technique that can be used on RTC Server? The technique should allow a safe mechanism to invoke and pass parameters from the Followup action.

FYI: If interested the processing I am planning to do is described in another topic (http://jazz.net/forums/viewtopic.php?t=9634)

Thanks,
Samit

0 votes



One answer

Permanent link
What techniques can I use to handle long running asynchronous jobs that are triggered from within a Followup action (e.g. Work Item Save Operation Participant) on the RTC server. These jobs/tasks do not need to hold up the operation itself and the guidelines for Operation Participants state that long running steps should not be called.

In separate threads, it was advised to use Eclipse Jobs in an RTC Eclipse client to do heavy processing. Is there a similar technique that can be used on RTC Server? The technique should allow a safe mechanism to invoke and pass parameters from the Followup action.

FYI: If interested the processing I am planning to do is described in another topic (http://jazz.net/forums/viewtopic.php?t=9634)

Thanks,
Samit


You can define a postTransaction asynchronous task that you can schedule in your follow up, to perform the work at a time after the operation complete. This is a repository extension point. You subclass
AbstractPostOutermostTransactionTask and implement IPostOutermostTransactionTask, and schedule your task using ITransactionService#executeTaskAfterCurrentOutermostTransaction().

Hope this helps,
John Camelon
SCM Server

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,927

Question asked: Mar 15 '10, 12:19 p.m.

Question was seen: 7,296 times

Last updated: Mar 15 '10, 12:19 p.m.

Confirmation Cancel Confirm