In order to use OSGi services in Spring and vice-versa you can use "SSO".
You have to compile project as bundle, and add to your spring project. (Standalone-compiler in pom.xml) Example provided in com.github.canatalay, pom.xml and init.xargs.
You can check Eclipse Concierge for OSGi capabilities.
Classloader