equinox


Service and Component in OSGI

女生的网名这么多〃 提交于 2020-01-17 14:02:10
问题 I have some little silly doubts in an OSGI concepts but they need to be clarified to have better understanding of concepts. Can anybody tell me what is the difference between OSGI Service and Component. What i know is that Service is like an interface file in java that can be used either by a different service or by a component. While component is like a particular implementation of the service. Please let me know if i am wrong or suggest some link from where i can get the things nicely. 回答1:

Service and Component in OSGI

六眼飞鱼酱① 提交于 2020-01-17 14:02:09
问题 I have some little silly doubts in an OSGI concepts but they need to be clarified to have better understanding of concepts. Can anybody tell me what is the difference between OSGI Service and Component. What i know is that Service is like an interface file in java that can be used either by a different service or by a component. While component is like a particular implementation of the service. Please let me know if i am wrong or suggest some link from where i can get the things nicely. 回答1:

How to get a bundle-object returned by a service out of the Equinox framework - java.lang.LinkageError

巧了我就是萌 提交于 2020-01-16 16:47:09
问题 I have a class which runs an Equinox framework. Now I would like to get an Object (defined in one of the bundles) that is returned by a service out of the framework. Unfortunately, I get a LinkageError and have no idea how to get rid of it. Is it even possible to let a service return a proper object to non-bundle code? Here is the full story: ParserDTOBundle is a bundle that defines the class ParserDTO and exports the corresponding package. In another bundle, ParserServiceBundle, I define a

EclipseLink : No Persistence provider for EntityManager named

不问归期 提交于 2020-01-02 03:53:09
问题 I'd like to create one Bundle that is able to use Java Persistence. To achieve this, I've created a plugin project within Eclipse. In my project, I've created a persistence.xml file into META-INF. I've aslo added in my MANIFEST.mf (into the depencies) those 3 packages : javax.persistence.jar org.eclipse.persistence.jar org.eclipse.persistence.jar Then, in my Activator I use this lines to create an EntityManager : factory = Persistence.createEntityManagerFactory(PERSISTENCE_UNIT_NAME);

Including additional resources with OSGi bundles

白昼怎懂夜的黑 提交于 2019-12-30 05:02:06
问题 I'm working on an OSGi bundle which implements a service as a wrapper around a native executable. That is, the service runs the executable with ProcessBuilder , feeds it some data, and retrieves the result. My question is about the best way to package this bundle. The native executable includes a number of dependent data files which all must be present on disk for the tool to run. I've found plenty of references on dealing with native DLLs in OSGi, but none that address files associated with

Better handling of Thread Context ClassLoader in OSGi

为君一笑 提交于 2019-12-29 02:51:27
问题 I've been using OSGi for a while now and I have various solutions to the problems I encountered. I wanted to revisit one of these and see if people had come up with different solutions. One of the most common issues I have with OSGi (Equinox 3.4.2) is the frequent unavailability of the Thread's context ClassLoader. I know this is partly an Equinox problem, but I have encountered the issue with Felix as well. I encounter this mostly with 3rd party libraries that start their own Threads or

Error after converting org.pbjar library to OSGi bundle

扶醉桌前 提交于 2019-12-25 07:09:03
问题 I'm trying to convert org.pbjar.jxlayer library to an OSGi bundle, I already succeeded in that but when I try to install it in Karaf container, the container claims that there is a missing requirement needed by this bundle: Unable to resolve 312.0: missing requirement [312.0] osgi.wiring.package; (osgi.wiring.package=com.sun.java.swing) I also put the javax.swing in the bundle import directive but the problem persists I changed the version of JDK (1.5, 1.6, 1.7) but no luck Can you help me

Equinox OSGi activating two versions of the same bundle

*爱你&永不变心* 提交于 2019-12-25 06:55:18
问题 I am looking for settung up my RCP and install all of the available applications on it. However; these applications have many internal and external dependencies such as. A -> B [1.0.0, 2.0.0) C -> B [2.0.0, 3.0.0) As a result in order to have both A and C installed on my RCP, I need both versions of B available and running. Assuming that B is not a singleton, what is the behavior of Equinox OSGI? In some places I read that OSGI will catch the latest version and loads that bundle. However, I

Eclipse 3.4 - external JARs with environment variables

半腔热情 提交于 2019-12-24 07:13:07
问题 I am developing a Plug-in for Lotus Notes (which is Eclipse 3.4) and need to rely on an external SDK/Connector for some Java dependencies and also Configuration files. It seems that in order to function properly, a file from the Connector installation folder has to be in the classpath. Since I don't know where it's installed, I have to rely on an environment variable that is set during installation ("IBMCMROOT"), which contains the folder. Is there any way to use Windows environment variables

Programmatically adding declarative services

删除回忆录丶 提交于 2019-12-23 15:26:17
问题 Is it possible to add declarative services using some kind of api? A little background: I have a server application based on dynamic scripts (they can be added, edited or removed at any time). Those scripts have dependencies to OSGi services and possibly each other. Whenever a script gets edited, the script gets compiled to javascript, and its dependencies are detected. At that point, I'd like to (re)register it as a declarative service, so it will be activated / deactivated when its

工具导航Map