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

How can I get service instance in server side class?

The server class is not a service class which extends AbstractRepositoryService, how can I get the server service, e.g. IRepositoryItemService?

0 votes



2 answers

Permanent link
The server class is not a service class which extends AbstractRepositoryService, how can I get the server service, e.g. IRepositoryItemService?


Your Jazz service can only refer to other Jazz services if:

a) your service extends IService;
b) the service you wish to reference is listed as a pre-requisite in the plugin.xml definition of your service;

-- Todd

Todd Lainhart
Jazz Foundation Services

0 votes


Permanent link
On 24-Mar-09 9:39 PM, lainhart wrote:
mincerwrote:
The server class is not a service class which extends
AbstractRepositoryService, how can I get the server service, e.g.
IRepositoryItemService?

Your Jazz service can only refer to other Jazz services if:

a) your service extends IService;
b) the service you wish to reference is listed as a pre-requisite in
the plugin.xml definition of your service;

-- Todd

Todd Lainhart
Jazz Foundation Services


From a Follow-up Operation it seems you should also extend
com.ibm.team.repository.service.AbstractService so you have access to
getService() method.

Regards,

Chemi.

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

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

Question was seen: 6,286 times

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

Confirmation Cancel Confirm