Hi,
you should try to annotate you SCR Components using the OSGi annotations:
- org.osgi.service.component.annotations.Component
- org.osgi.service.component.annotations.Activate
- org.osgi.service.component.annotations.Deactivate
and so on.
But remember that these annotations are build time annotations, So you
need tools like bndtools or the PDE (PDE only support DS until 1.3) that
generate the metadata (componenten - xml files) for these annotations.
Felic SCR is the implementation for OSGi Declarative Services:
It is the implementation for OSGi Declarative Services:
https://docs.osgi.org/specification/osgi.cmpn/7.0.0/service.component.html
https://developer.ibm.com/articles/osgi-demystified-part-5-using-declarative-services/
I hope this helps.
Regards,
Mark
Am 09.12.21 um 11:01 schrieb Kuldeep Singh Budania:
Hi All,
I am working on an OSGI project where I am upgrading jetty and OSGI
versions from R-4.9 to R4_19_maintenance and Jetty version is getting
upgraded from 9.4.11 to 9.4.44
I was using org.eclipse.equinox.ds(1.4.400) as a bundle earlier which
was using org.apache.felix internally.
Since org.eclipse.equinox.ds dependency has been removed from
R4_19_maintenance,
I have added dependency of org.apache.felix.scr(2.1.24) but the issue
is org.apache.felix.scr.annotation services are not getting activated.
*(Activate* *method is not being called)*
Also, the same is happening with
org.apache.felix.scr.dependencymanager.annotations (3.2.0) and the
services are not getting started *(Start method is not being called)*
Can you please help me in knowing if it is the version of
org.apache.felix.scr.annotation that is causing the issue, if yes,
which version it supports or what could be the possible issues that
might be causing this.
I appreciate your quick response and thanks in advance.
Thanks,
---------------------
Kuldeep Singh Budania
_______________________________________________
equinox-dev mailing list
[email protected]
To unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/equinox-dev
--
Mark Hoffmann
M.A. Dipl.-Betriebswirt (FH)
Geschäftsführer
Tel: +49 3641 384 910 0
Mobil: +49 175 701 2201
E-Mail: [email protected]
Web: www.datainmotion.de
Data In Motion Consulting GmbH
Kahlaische Straße 4
07745 Jena
Geschäftsführer
Mark Hoffmann
Jürgen Albert
Jena HRB 513025
Steuernummer 162/107/05779
USt-Id DE310002614
_______________________________________________
equinox-dev mailing list
[email protected]
To unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/equinox-dev