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

Add new plug-in dependency in plug-in project

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.

0 votes


Accepted answer

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

1 vote


3 other answers

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

1 vote


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

0 votes


Permanent link
Same issue here.
It has been 2 years since the first post, any more answers ?

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
× 11,008

Question asked: Oct 27 '10, 2:06 p.m.

Question was seen: 6,641 times

Last updated: Nov 19 '12, 9:25 a.m.

Confirmation Cancel Confirm