In the end i will perhaps provide a helper so that the activator can import and export services and other types of meta data about the system.
By parameters i mean objects in general, perhaps via a map. it would be great if one bundle when installing another had a mechanism to send parameters to the starting bundle. I suppose i could in...
OSGi - dynamic modular system for Java. Ok, but what is the base line theme, why OSGi has been developed? What are the benifits of using OSGi? What is the main story of developing the OSGi? Why it is?
Waiting for kind response.
...
I have checked a few testing solution for OSGI including PAX and had a quick look at the abstract TestCase within Spring DM but they both appear to require one to jar up and bundle associated bundles. I was hoping to find something that works without this intermediate step.
Imagine the ability to package up packages on your classpath s...
i am new to OSGi standard. i want to know more about the structure of bundle package file.
find there is this OSGi-INF folder, the specification mentioned about l10n and permission, i wonder where defined the use of OSGI-INF folder? can i put other stuff into it?
where to store the jar files referenced by the bundle?
besides OSGi-INF a...
I have a requirement where I need to share some web resources (jsp, html, js, images, css etc.) across different Spring based Struts 2 applications. And seems like OSGi can be used to achieve this?
Can some one give some pointers on how to achieve this with OSGi?
And secondly I want to know is OSGi mature enough to be used in producti...
I'm writing a graphic application, with java, swt and osgi. The bundle A holds the application main window. Depending on the selection of the user, a different user interface must be loaded. That is, the different GUI are in different bundles.
So the main bundle A calls the bundle B to draw the new graphic interface. The bundle B contain...
Once an instance of an OSGi service is retrieved from the bundle context does it become invalidated when the service is stopped?
My initial tests show that the service instance can be used even after the service bundle is stopped, which contradicts my understanding of the dynamic nature of OSGi.
I suppose this boils down to what retri...
I am playing with OSGI and have a few bundles. Bundle A and B both contain a registered service which implement a single interface. The third bundle C includes code to lookup a service implementing the previously mentioned interface. The A and B bundles have different version numbers however it appears that C picks up the service from th...
I am empirically testing OSGi Bundles and their relationships for this I need lots of bundles.
Making these datasets is a difficult task. I already have Eclipse update (1700 Bundles) sites and Spring Enterprise bundle repository for testing, however I want more, anyone out there got massive amounts of bundles.
I don't even need the cod...
Sun is putting a lot of effort behind modularising the JDK in the form of Jigsaw, and insinuating that it should be the module format of choice for other Java developers as well. The only notable player who is using this is NetBeans (and derivative applications).
On the other hand, the industry has standardised around OSGi, with all of ...
I've created a simple plugin project in eclipse 3.5 that just stores third-party libraries for the use by other bundles in an eclipse RCP application. Worked as expected: I edited the manifest, exported the required packages and added the libraries to the build path (project build path as well as manifest build path).
Some days later I ...
OSGi allows for dependencies to be determined via Import-Package, which just wires up a single package (exported from any bundle), and Require-Bundle, which wires up to a specific named bundle's exports.
In building a greenfield OSGi application, which approach should I use to represent dependencies? Most of the bundles will be internal...
I am trying to swap out Sun's HTTPServer for the much better Jetty server, within an OSGi bundle, running on Equinox.
I have tried this:
System.setProperty("com.sun.net.httpserver.HttpServerProvider","org.mortbay.jetty.j2se6.JettyHttpServerProvider");
but when endpoint.publish(url) is called, and the server is spawned, it complains o...
I have an Eclipse plugin for which I create the OSGi bundle JARs with Ant. I would like to sign them with the Ant task, but that overwrites the MANIFEST.MF contents with the class signatures, making the OSGi bundles unusable. The JDK jarsigner tool has the same behavior. The Eclipse PDE seems to have that functionality, but as far as I ...
I am writing up a PaxExam test and i am getting strange behaviour when i reference classes belonging to a different bundle in the configure() method of my Test. I have simplified the problem to the following:
I create 2x bundles on the fly.
Test Bundle
* configure builds up 2 x bundles.
* build Service bundle by adding(Class)....
Hello, everyone!
I can't find information about starting and using Apache Felix from code.
I want do things which I am able (or unable ;) ) to do with Apache Felix's Shell.
For example, how do I start a module?
Please help.
...
OSGI Testing frameworks - some observations.
I am in the middle of writing a system that makes use of OSGI. However all of the popular testing frameworks (Spring-OSGI, PaxExam) require a lot of artefacts for even the simplest test.
Wishlist / Goals
Ideally i would like a single Test that uses TinyBundle to assemble bundles and gives ...
Hello, everyone!
I have successfully managed to start Apache Felix from code and register an own Bundle.
Following relation between OSGI-projects is needed:
[OsgiInterface] -- provides interfaces.
[OsgiModuleA] -- (bundle) provides an implementation of those interfaces.
knows [OsgiInterface]
[OsgiUsage] -- makes use of one or more b...
I'm looking for a best practice on shutting down an OSGi container.
Currently we are using a small launcher app which calls EclipseStarter.startup() and installs some core bundles. After that the launcher terminates.
When the test GUI (running as a bundle) is closed it calls a System.exit(0) to shutdown the container, but there must be...
I'm trying to test a bundle using PaxExam which has two embedded jars, referenced by the Bundle-Classpath in the manifest.
When trying to access the service that the bundle supplies from within PaxExam I receive an ExceptionInInitializerError:
Caused by: java.lang.RuntimeException: Unable to load either XMLPull or StAX parser - chec...