It's all about the answers!

Ask a question

Add new plug-in dependency in plug-in project


Hsuan-Po Lin (1143) | asked Oct 27 '10, 2:06 p.m.
Hello,

I'm learning the server-side programming by the tutorial: http://jazz.net/library/article/495 , and can successfully prohibit the work item save event as well as print out the "hello activator world" in the screen. Note that the
Extension = com.ibm.team.repository.client
OperationId = com.ibm.team.workitem.operation.workItemSave

But when I extend the code by just import com.ibm.team.repository.client.ITeamRepository, and add a new required plug-in com.ibm.team.repository.client in the dependencies tab. The server seems like ignoring my plug-in since the "hello activator world" did not print out and I cannot find the plug-in in the "process configuration" tab in the project area.

Is there any idea about this issue?
Any help will be appriciated.

Accepted answer


permanent link
John Vasta (2.6k15) | answered Nov 19 '12, 9:23 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
 You cannot use client plug-ins in the server; they are not available. Generally, plug-ins with ".client" in their name are only available in the RTC client (or a plain Java client). Plug-ins intended to be deployed as server extensions cannot depend on client plug-ins.
Ralph Schoon selected this answer as the correct answer

3 other answers



permanent link
Ralph Schoon (63.1k33645) | answered Nov 19 '12, 9:24 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited Nov 19 '12, 9:25 a.m.
You have to be aware that there is Client API and Server API. ITeamRepository is Client API that is used when running in Plain Java Client Library applications. You would not necessarily want to use that in a server extension.

See https://jazz.net/library/article/1000 and look up getService() on how to get a service as opposed to a client library in the server. I try to post some of the differences in the server and client API on http://rsjazz.wordpress.com for example in http://rsjazz.wordpress.com/2012/11/01/restrict-delivery-of-changesets-to-workitem-types-advisordelivery-of-changesets-associated-to-wrong-work-item-types-advisor/ , http://rsjazz.wordpress.com/2012/09/20/the-rtc-workitem-server-link-api-linking-to-work-items-and-other-elements/ and http://rsjazz.wordpress.com/2012/07/31/rtc-update-parent-duration-estimation-and-effort-participant/ .

permanent link
Pierre-Benoit Besse (11111) | answered Nov 19 '12, 9:00 a.m.
Same issue here.
It has been 2 years since the first post, any more answers ?

permanent link
Megan Katysovas (7665) | answered Nov 01 '10, 10:00 a.m.
Hello,

I'm learning the server-side programming by the tutorial: http://jazz.net/library/article/495 , and can successfully prohibit the work item save event as well as print out the "hello activator world" in the screen. Note that the
Extension = com.ibm.team.repository.client
OperationId = com.ibm.team.workitem.operation.workItemSave

But when I extend the code by just import com.ibm.team.repository.client.ITeamRepository, and add a new required plug-in com.ibm.team.repository.client in the dependencies tab. The server seems like ignoring my plug-in since the "hello activator world" did not print out and I cannot find the plug-in in the "process configuration" tab in the project area.

Is there any idea about this issue?
Any help will be appriciated.



I am having the same issue. Any progress on this?

Your answer


Register or 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.