RTC 4 how to get IContributorService?
Hi
I am trying to get IContributorService to get a Contributor,
I using the following code:
IContributorService service=getService(IContributorService.class);
But i m getting a runtime error that says that he cant find the service.
I m using this method in an class that extends from AbstractService and implements OperationParticipant.
what i m doing wrong?
|
Accepted answer
You have to tell the system you might bind to this service thru your plugin.xml
I am traveling at the moment(stuck in JFK) but will update tomorrow or weekend sometime
Sam
Nicolás Rodríguez selected this answer as the correct answer
|
3 other answers
Hi Sam
I modified the plugin.xml and add a prerequisite com.ibm.team.repository.common.service.IContributorService to my service, but still I have the same error.
in the Extensions tab i have:
com.ibm.team.process.service.operationParticipants
-Add Subscriptor(operation Participant)
-com.ibm.team.rtc.plugins.AddSubscriptor(extensionService)
-(prerequisites)
- com.ibm.team.repository.common.service.IContributorService(requieredService).
Is there something that i am missing?
|
The error message its "the service 'com.ibm.rtc.plugins.AddSubscriptor' failed to find the requiered service 'interface com.ibm.team.repository.common.service.IContributorService'. Check <prerequistes> in plugin.xml "
|
I already solved, my problem was a misspelled word
|
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.