Search code examples
javaspringblueprint-osgi

Do I need a blueprint.xml when using Springs OSGI Dynamic Modules?


I have a spring-context.xml and a blueprint.xml. In the blueprint.xml I am creating a bean that is getting wired into a class in a different project.

Well, I started using Springs dynamic modules for OSGI to load in a configuration file from the OSGI container (which is working) but now I noticed I'm getting an Error creating the bean that is defined in the blueprint.xml

Do I not need the blueprint anymore if I'm defining OSGI properting in my spring context file?

In the blueprint, I have this

How would I use the OSGI Dynamic modules to mimic that?


Solution

  • You should either use spring dm or blueprint not both at the same time. I recommend to use rather blueprint than spring dm as the later has a lot of issues with classloading and is not maintained anymore.

    Is there any special reason why you move from blueprint to spring dm and not the other way around?