osgi

Has anyone found OSGi to be useful in corporate applications? [closed]

风流意气都作罢 提交于 2019-12-04 10:15:18
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . Has anyone deployed a corporate application in OSGi and found it useful? I can see the benefits, forced modularity, good dependency

importing org.eclipse.core packages for Eclipse plug-in

别来无恙 提交于 2019-12-04 10:08:22
I'm trying to create a plug-in to mimic the Eclipse open resource dialog (CTRL+SHIFT+R). I've learned how to create a FilteredItemsSelectionDialog by following the example . But the missing piece is how to fill the dialog with the workspace resources. I found OpenResourceHandler and am trying to duplicate this functionality in my plug-in, so I can step through and see how it works. So I copy the source and rename it to avoid colliding with the real one. The problem is that I cannot import these classes: import org.eclipse.core.resources.IContainer; import org.eclipse.core.resources.IFile;

How do you implement a ManagedServiceFactory in OSGi?

可紊 提交于 2019-12-04 09:48:18
Im currently trying to setup my own implementation of a ManagedServiceFactory . Here is what I'm trying to do: I need multiple instances of some service on a per-configuration base. With DS the components worked perfectly but now I found out that these services should handle there own lifecycle (i.e. (de)registration at the service registry) depending on the availability of some external resource, which is impossible with DS. Thus my idea was to create a ManagedServiceFactory , which then would receive configs from the ConfigurationAdmin and create instances of my class. These again would try

Spring component-scan broken in osgi container

*爱你&永不变心* 提交于 2019-12-04 08:37:15
I'm trying to integrate spring DI into an existing jaxws project. I've got this working locally on tomcat but when I deploy to the remote container it doesn't appear to do the classpath scanning. I can see in the logs that on tomcat it registers my @Components as beans but on the remote server they're not mentioned at all. What I do see is the stacktrace below. It looks like it's down to the quirky web container I have to use. It's the "integrated application server for IBM i". http://www-03.ibm.com/systems/i/software/ias/ I believe this is built on the eclipse architecture and when you

Continuous deployment of OSGi-based application on jenkins

ぐ巨炮叔叔 提交于 2019-12-04 08:35:27
问题 After spending a couple of hours trying to understand how to make continuous deployment work in the case of an OSGi-based application , I am finally posing my first question on stackoverflow, hoping for some indications on what I might have done wrong or missed - somehow I feel being on the wrong track... This is what I want to achieve: build some bundles and install them to the maven repository (no problem here, using bnd) now having all the bundles making up my application (passing all

How can OSGi and Akka benefit from each other? How is this structured?

旧城冷巷雨未停 提交于 2019-12-04 08:32:57
Following up my rather illogical question , asking to use OSGi or Akka, I was advised that the two can be used together, and that they each solve a different problem. I could use OSGi to provide modularity and updatability, and Akka to provide scalability and performance. As there hasn't been a lot of experimenting with combining OSGi and Akka, I still have a couple of questions. How can OSGi and Akka be used together and benefit from each other? How is this structured? Do all your actors reside in one OSGi bundle, do they each get a separate bundle, is there a hybrid solution or isn't there

Apache Karaf vs. Servicemix

不问归期 提交于 2019-12-04 07:44:57
问题 Is anyone using Karaf instead of Servicemix? If so, how did you come to this decision? I'm aware that Servicemix adds a layer of functionality around Karaf, just curious if Karaf is being used on its own and why... 回答1: We're using Karaf for a number of our applications. We were already using Camel (JMS and Esper) for integration between several different platforms (a JBoss 4.2 instance, a Tomcat and several Felix instances) and as this was working well there was little justification in

Scala in OSGI container?

纵饮孤独 提交于 2019-12-04 07:31:43
问题 How can I code my bundle in Scala and then deploy it into OSGI container? Do I compile it into "java" first or can i deploy scala straight into OSGI and use some kind of bundles to recognize it? Any pointers would be great. Currently I am using Apache Felix as my osgi-container, but just a simple explanation of generic concepts would suffice to get me started. 回答1: Thanks to everyone for the answers, you led me to the solution! I will describe it here in a little simpler terms for a wider

Split packages in plain java

北城余情 提交于 2019-12-04 06:41:28
OSGi has a problem with split packages, i.e. same package but hosted in multiple bundles. Are there any edge cases that split packages might pose problems in plain java (without OSGi) ? Just curious. For OSGi packages in different bundles are different, regardless of their name, because each bundle uses its own class loader. It is not a problem but a feature, to ensure encapsulation of bundles. So in plain Java this is normally not a problem, until you start using some framework that uses class loaders. That is typically the case when components are loaded. Where split packages come from Split

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