It's all about the answers!

Ask a question

How can I get service instance in server side class?


Kevin Gu (17131) | asked Mar 19 '09, 10:15 p.m.
JAZZ DEVELOPER
The server class is not a service class which extends AbstractRepositoryService, how can I get the server service, e.g. IRepositoryItemService?

2 answers



permanent link
Todd Lainhart (40611) | answered Mar 24 '09, 4:36 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
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

permanent link
Jose Miguel Ordax Cassa (2.4k2119100) | answered Dec 01 '09, 6:08 a.m.
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.

Your answer


Register or to post your answer.