OSGi bundle access Spring context file from another bundle
问题 I have an existing application that exists as multiple Spring projects. Project A's Spring context XML file improts B's Spring context XML file using <import resource="classpath*:/META-INF/spring/BContext.xml" /> However, it I get a FileNotFoundException . I assume this is caused by the fact that the resource is not exposed by project B's bundle. I can access the classes, but not the file. When researching this issue the common comment was to use OSGi services and inject the services instead