How to retrieve change set histories in a sever-side Operation Participants?
I design a server-side Operation Participants invoked by server-side delivery event.
And I wanna retrieve change set histories in this Operation Participants.
I coded as blow,
Here is exeption message:"Illegal transaction in progress for service method call."
This problem is same as this post, but no one answered this post.
Does anyone feel like giving me a hand?
And I wanna retrieve change set histories in this Operation Participants.
I coded as blow,
ServiceHistoryProvider targetHistory = ServiceHistoryProvider.FACTORY.create(but IllegalStateException occured with com.ibm.team.scm.common.IScmService#getHistoryForVersionable method.
operationData.getDestWorkspace(), changeSet.getComponent());
ChangeHistoryEntry[] changeHistoryEntries = scmService.getHistoryForVersionable(targetHistory,
change.item(), Integer.MAX_VALUE, true, null, null);
Here is exeption message:"Illegal transaction in progress for service method call."
This problem is same as this post, but no one answered this post.
Does anyone feel like giving me a hand?
One answer
Good morning.
This post is old, but I had the same problem recently. I've used your code above and works normally for me. But I only tested in the localhost server.
This post is old, but I had the same problem recently. I've used your code above and works normally for me. But I only tested in the localhost server.
IWorkspace workspace = data.getDestWorkspace();About dependencies, I've only used these ones below:
ServiceHistoryProvider targetHistory = ServiceHistoryProvider.FACTORY.create( workspace, changeSet.getComponent());
- com.ibm.team.repository.service.IRepositoryItemService
- com.ibm.team.scm.common.IScmService