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

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?

0 votes


Accepted answer

Permanent link
 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

1 vote


3 other answers

Permanent link
 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?

0 votes


Permanent link
 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 "

0 votes


Permanent link
 I already solved, my problem was a misspelled word

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
× 6,125

Question asked: Jul 26 '12, 6:05 p.m.

Question was seen: 5,601 times

Last updated: Jul 27 '12, 12:30 p.m.

Confirmation Cancel Confirm