It's all about the answers!

Ask a question

Creating an Advisor plugin for RTC version 5.0


Paul B (21110) | asked Aug 31 '15, 2:21 a.m.
edited Aug 31 '15, 5:26 a.m. by Ralph Schoon (60.5k33643)
Hi all,

I'm pretty knew to RTC development but I've found some doco that shows me how to create a plugin (link below). When I get up to the part to create the class, it says to change the superclass to com.ibm.team.repository.service.AbstractService. I don't have the repository.* namespace. It also says to inherit from the interface com.ibm.team.process.common.advice.runtime.IOperationAdvisor. I don't have that either.

I'm running RTC version 5.0 and I followed the extension documentation Version 4.0 from the jazz website to download and configure Eclipse.

Any help would be great.
Thanks

https://www.ibm.com/developerworks/community/blogs/extendingrtc/entry/checksummaryadvisor?lang=en


Accepted answer


permanent link
Hakki Bozkurt (1631126) | answered Aug 31 '15, 10:49 a.m.
edited Aug 31 '15, 10:50 a.m.
 Hello Paul, 

I think, somethings missing in ur link. 

https://jazz.net/library/article/495 -> its a good sample for start, and Ralph's blog best guide in this job.

and Sam's answer is correct answer for this questions, i think.

regards.
Paul B selected this answer as the correct answer

3 other answers



permanent link
Ralph Schoon (60.5k33643) | answered Aug 31 '15, 5:26 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited Aug 31 '15, 5:26 a.m.
Start here: https://rsjazz.wordpress.com/2013/02/28/setting-up-rational-team-concert-for-api-development/
Do the RTC Extensions Workshop. Once you have done that, look at the advisors published on https://rsjazz.wordpress.com/ and check the dependencies added to the plugin.xml metadata.

permanent link
sam detweiler (12.5k6185201) | answered Aug 31 '15, 6:43 a.m.
Basically, this means you don't have the SDK libraries setup right in your project

permanent link
Paul B (21110) | answered Sep 01 '15, 7:53 p.m.
 Hi all,

Thanks for your replies they have helped me solve my issue. For others experiencing the same issue; I had added the RTC SDK into the plug-in development target platform. But I what I didn't do (which caused the issue) was also add the eclipse plugin folder to the same development target platform.

Hakki I went to the link which showed me how to create a plugin and I got it working so cheers. Though it works, I got a 'Requested resource is not available' when I when to the https://.../requestReset site. But the plug was still available in the Operational behavior section anyways.

The last one was I tried making the same plugin without the activator and it didn't work so I'm not sure if you always needs an activator or if it's because the requestReset site didn't work.

Thanks again for eveyones help :)

Comments
Ralph Schoon commented Sep 02 '15, 3:08 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Request Reset is only needed if you deploy to WAS or Tomcat. It is not needed if you debug on Jetty.
I have never used an activator for operational behavior.


Hakki Bozkurt commented Sep 02 '15, 3:16 a.m.

1) https://localhost:9443/jazz/admin/cmd/requestReset  need admin perm.

what is ur user's group? must be in jazz admin group.
2) i think thats plugins(pre-conds. & follow up acts) need activator.java 
3) u need restart request anyway. when u are restarting tomcat if u have request restart that application look to "$JAZZ-ROOT\server\conf\jazz\provision_profiles" ur .ini files and doing the add or remove
4) sorry may bad english :)


Your answer


Register or to post your answer.