简体   繁体   English

使用Springs OSGI动态模块时是否需要blueprint.xml?

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

I have a spring-context.xml and a blueprint.xml. 我有一个spring-context.xml和blueprint.xml。 In the blueprint.xml I am creating a bean that is getting wired into a class in a different project. 在blueprint.xml中,我正在创建一个将要连接到另一个项目中的类中的bean。

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 好吧,我开始使用OSGI的Springs动态模块从OSGI容器中加载配置文件(正在运行),但是现在我发现创建blueprint.xml中定义的Bean时出错

Do I not need the blueprint anymore if I'm defining OSGI properting in my spring context file? 如果我在spring上下文文件中定义OSGI属性,是否不再需要该蓝图?

In the blueprint, I have this 在蓝图中,我有这个

How would I use the OSGI Dynamic modules to mimic that? 我将如何使用OSGI动态模块来模仿它?

You should either use spring dm or blueprint not both at the same time. 您不应同时使用spring dm或blueprint。 I recommend to use rather blueprint than spring dm as the later has a lot of issues with classloading and is not maintained anymore. 我建议使用蓝图而不是spring dm,因为后者在类加载方面存在很多问题,并且不再维护。

Is there any special reason why you move from blueprint to spring dm and not the other way around? 从蓝图迁移到Spring dm,而不是从其他方面转向,有什么特殊的原因吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何将一个blueprint.xml中的单个bean注入一个单独的blueprint.xml? - How can I inject a singleton bean from one blueprint.xml into a separate blueprint.xml? 如何在blueprint.xml中加密/解密密码? - How to encrypt/decrypt passwords in blueprint.xml? 将具体的实现连接到blueprint.xml中的接口 - Wire concrete implementation to interface in blueprint.xml 骆驼2.10更改blueprint.xml位置 - Camel 2.10 change blueprint.xml location 使用OSGi时是否可以进行字节码操作? - Is it possible to do bytecode manipulation when using OSGi? 如何将Jasypt与springs autowire一起使用? - How Do I use Jasypt with springs autowire? 春天:为什么在使用批注时需要applicationContext.xml? - Spring: why do I need applicationContext.xml when I am using annotations? 我需要什么 maven 依赖来加载 OSGi FrameworkFactory - what maven dependency do I need to load an OSGi FrameworkFactory 使用Commons-Diester XML规则时,如何排除一些不需要的XML属性? - When using commons-digester XML rules, how do I exclude some attributes of the XML that I dont need? 当我有两个使用相同jar的OSGi包时,他们是否需要在每个包中使用这个jar或者一个就足够了? - When I have 2 OSGi bundles which use the same jar, do they need this jar in each bundle or one out is sufficient?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM