How can I deploy RTC SDK on Jazz CLM server?
I am trying to write some server extensions. For this I am depending on some plug-ins from the RTC SDK. How should I ensure even they are available when server starts?
Why I want it this way?
I am writing multiple server extension which I intend to deploy using individual sites. Since these sites accepts features and the plug-in dependency is common across different extensions, I am looking for away to create a deployable site for RTC SDK. Let me know if one exists already.
Context: RTC 4.0 and https://jazz.net/library/content/articles/rtc/4.0/extensions-workshop/downloads/RTC40ExtPoT.pdf
Why I want it this way?
I am writing multiple server extension which I intend to deploy using individual sites. Since these sites accepts features and the plug-in dependency is common across different extensions, I am looking for away to create a deployable site for RTC SDK. Let me know if one exists already.
Context: RTC 4.0 and https://jazz.net/library/content/articles/rtc/4.0/extensions-workshop/downloads/RTC40ExtPoT.pdf
Accepted answer
you cannot use 'CLIENT' jars from a SERVER plugin. client are client only
you must use the SERVICE functions instead..
IRepositoryService= getService(IRepositoryService.class);
IWorkItemService = getService(IWorkItemService.class);
you must use the SERVICE functions instead..
IRepositoryService= getService(IRepositoryService.class);
IWorkItemService = getService(IWorkItemService.class);
One other answer
the SDK does not deploy TO the server, those apis are already present in the server runtime.. you need them (sdk files) to make your code compile. the plugin.xml of your extension will reference the sdk jar files as dependencies, which will be resolved when your plugin loads..
here is the manifest.mf from one of my advisor plugins
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Example Plug-in
Bundle-SymbolicName: advisor.example;singleton:=true
Bundle-Version: 1.0.0.qualifier
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Require-Bundle: com.ibm.team.process.common,
com.ibm.team.workitem.common,
com.ibm.team.repository.common,
com.ibm.team.repository.service;bundle-version="1.1.1"
Import-Package: org.eclipse.core.runtime,
org.osgi.framework
here is the manifest.mf from one of my advisor plugins
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Example Plug-in
Bundle-SymbolicName: advisor.example;singleton:=true
Bundle-Version: 1.0.0.qualifier
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Require-Bundle: com.ibm.team.process.common,
com.ibm.team.workitem.common,
com.ibm.team.repository.common,
com.ibm.team.repository.service;bundle-version="1.1.1"
Import-Package: org.eclipse.core.runtime,
org.osgi.framework