spring-dm

How could I get BundleContext in Spring DM?

馋奶兔 提交于 2019-12-23 09:48:05
问题 I am newly on Spring DM and I would like to access Bundlecontext. My problem is that I have a bundle with Activator, but it does not have xml config file. I cannot touch this bundle, then I need to access to BundleContext and serviceReference to obtain the service in my bundle. I am using Spring DM in my bundle. So, how could I get BundleContext? Thanks! Regards! 回答1: One way is to implement BundleContextAware and the other one, if you don't want to rely on DM and its mechanisms:

Unresolved constraint in bundle, missing requirement osgi.wiring.package

对着背影说爱祢 提交于 2019-12-06 01:37:01
问题 I am having a project using OSGi-(felix), SpringDM, hibernate, maven. when I installed bundle, it is ok, the output when I run bundle id is: LastModified 1384619994484 Headers [Manifest-Version=1.0, Bundle-Vendor=NguyenVinhLinh, Bnd-LastModified=1384619954778, Tool=Bnd-2.1.0.20130426-122213, Bundle-Name=DrugManager, Built-By=nguyenvinhlinh, Import-Package=org.hibernate,org.hibernate.classic,org.hibernate.criterion,org.springframework.beans.factory;version="[2.5,3)",org.springframework.core.io

What is the difference between “Import-Bundle” and “Require-Bundle”?

纵饮孤独 提交于 2019-12-04 17:03:51
问题 What is the difference between spring source dm server specific Import-Bundle and OSGi's Require-Bundle ? I am confused whether to use Import-Bundle or Require-Bundle in my project. 回答1: Import-Bundle is similar to Require-Bundle, it creates a complete dependency on the other bundle, including that bundle's dependencies. This transitivity is bad because you have no idea what you depend, creating the infamous "big ball of mud" problem we're so familiar with in Object oriented programming. In

Unresolved constraint in bundle, missing requirement osgi.wiring.package

断了今生、忘了曾经 提交于 2019-12-04 06:38:14
I am having a project using OSGi-(felix), SpringDM, hibernate, maven. when I installed bundle, it is ok, the output when I run bundle id is: LastModified 1384619994484 Headers [Manifest-Version=1.0, Bundle-Vendor=NguyenVinhLinh, Bnd-LastModified=1384619954778, Tool=Bnd-2.1.0.20130426-122213, Bundle-Name=DrugManager, Built-By=nguyenvinhlinh, Import-Package=org.hibernate,org.hibernate.classic,org.hibernate.criterion,org.springframework.beans.factory;version="[2.5,3)",org.springframework.core.io;version="[2.5,3)",org.springframework.transaction.annotation;version="[2.5,3)", Bundle-SymbolicName

What is the difference between “Import-Bundle” and “Require-Bundle”?

戏子无情 提交于 2019-12-03 10:59:06
What is the difference between spring source dm server specific Import-Bundle and OSGi's Require-Bundle ? I am confused whether to use Import-Bundle or Require-Bundle in my project. Import-Bundle is similar to Require-Bundle, it creates a complete dependency on the other bundle, including that bundle's dependencies. This transitivity is bad because you have no idea what you depend, creating the infamous " big ball of mud " problem we're so familiar with in Object oriented programming. In OO, we've found a solution to this entanglement by using interfaces, they separate implementation from

OSGi: Blueprint vs. Spring DM

混江龙づ霸主 提交于 2019-12-03 03:37:48
问题 I am a little bit confused about Blueprint and Spring DM: From what I think is true: Spring DM is a framework defined by Spring Source Blueprint is a framework defined by the OSGi Alliance Blueprint has "taken" many of it's ideas from Spring DM No? Can we expect that those two frameworks become one in the future (merge)? If not, which one will be the most future-proof? 回答1: OSGi 4.2 introduces the Blueprint Service specification based on Spring Dynamic Modules project for which Spring DM (2.x

How do I use a Spring bean inside an OSGi bundle?

落爺英雄遲暮 提交于 2019-11-28 01:25:21
I have an application where I have to use Spring to load a bean based on some business conditions inside an OSGi bundle. This bean is not meant for export and is used for calculation inisde my bundle. Basically I have an actual service component, which is exported, and it has to use this Spring bean internally. But... When I use Spring DM the extender loads the application context in a seperate thread. How to access the context file inside my bundle? How to make sure extender thread finshes loading application context so that i can use it in my bundle? I don't want to export the application

How do I use a Spring bean inside an OSGi bundle?

好久不见. 提交于 2019-11-26 23:31:21
问题 I have an application where I have to use Spring to load a bean based on some business conditions inside an OSGi bundle. This bean is not meant for export and is used for calculation inisde my bundle. Basically I have an actual service component, which is exported, and it has to use this Spring bean internally. But... When I use Spring DM the extender loads the application context in a seperate thread. How to access the context file inside my bundle? How to make sure extender thread finshes