osgi

Eclipse Extensions and Declarative Services

I'm a little confused on the approach to extensions/services in the Eclipse architecture. There are two options available to a developer: The use of Eclipse plugin extensions - http://www.eclipse.org/articles/Article-Plug-in-architecture/plugin_architecture.html The use of declarative services - http://www.eclipse.org/equinox/bundles/ ...

OSGi plugin won't start in tomcat.

I have an OSGi plugin with an activator that I am requesting to start under my tomcat jsf project. Based on: http://www.eclipse.org/equinox/documents/quickstart.php and some other docs, I have placed this structure under my WEB-INF directory to start the equinox implementation of osgi. I have been able to access plugins directly, but n...

How to configure Log4J when deploying an OSGi app with the Equinox Servle Bridge to Tomcat?

When deploying my OSGi web application using the equinox servlet bridge i get the following: log4j:WARN No appenders could be found for logger (org.springframework.osgi.extender.internal.activator.ContextLoaderListener). log4j:WARN Please initialize the log4j system properly. I tried several ways of supplying the necessary "log4j.prop...

Is MEF OSGi for .NET?

I'm just trying to get my head around the Managed Extensibility Framework (MEF) at the moment and digging into a bit. I have an Eclipse background so in my brain I currently have the equation: MEF =~ OSGi for .NET Based on what I have heard so far. Am I on the right lines? ...

Jasper in Equinox - does not resolve jstl core uri

I'm currently researching OSGi with Spring, and working through a couple of examples from Pro Spring Dynamic Modules for OSGi. My example web-app has a single controller like: @Controller public class HelloWorldController { private HelloWorldService helloWorldService; @RequestMapping(method = RequestMethod.GET) @ModelAttri...

Mini-OSGi that can run in a sandbox (like AppEngine or WebStart)?

I really like the concept of modular bundles as implemented by OSGi. I also like "managed deployment" services like Google AppEngine (for web application) or Java WebStart (for client software). These two ideas seem to complement each-other rather well conceptually. However, the OSGi standard includes a couple of features that make i...

OSGi Service wrapping a jar

Hello all, I am trying to create an OSGi service that wraps another jar. I added the jar to the project, the classpath and the binary build. I registered the service in the Activator but when the consuming bundle calls the service I get a java.lang.NoClassDefFoundError on the wrapper jar. Does anyone have any idea what I am doing wrong ...

More than one implementator of an interface. How with OSGi ?

I am interested in using OSGI as a means of managing plugins for a project. That is there can be many implemenators of my interface, each appearing in its own / separate OSGI bundle with the implementation class exported... ...

How to discovering types exported by OSGi bundle without installing/activating ?

Basically i want to discover if a jar implements any number of interfaces wihtout activating or starting the bundle. Is it possible to read the meta data from the meta-inf from an API just like the container does but without activating a bundle ? I want to use OSGi to support plugins of which numerous interfaces will be published and i ...

Apache Felix: What are extension bundles?

Apache Felix has the concept of an "extension bundle". This seems to be a bundle that contributes to the system bundle. There is also a special URL "felix://extensions/" being registered for them. When would I need to use extensions as opposed to regular bundles? Are there examples of bundles that use this approach? Is this a Felix-on...

[Equinox/OSGi] dynamic plug-ins management /Updated

I mean if one plugin will [download and] copy other plugin in apropriate folder or make a link file, can it dynamically integrate it with platform without restart? So, it looks like it is possible to build an always-up server, that evolves in time, without being restarted. Is it a demanded(not sure about this word, English isn't my na...

[Eclipse] History: why Eclipse foundation had choosen OSGi?

Was there concurrent technologies at that time? What was advantages of OSGi compared to other technologies and to native (pre 3.0) technology? ...

OSGi SAT, how should we deal with activation failure?

The eclipse OSGi Service Activator Toolkit provides a framework that simplifies handling the dependencies between budles. One can derive from org.eclipse.soda.sat.core.framework.BaseBundleActivator and over-ride (for example) the activate() method to do some spefic initialisation work. The signature is protected void activate(){} Wh...

OSGi implementation for .NET

Is there work on implementing a .NET version of the OSGi plugin architecture (or something similar)? I have only found this paper, but no real library. Any pointers? ...

How can I filter OSGi service visibility?

OSGi employs a service-oriented architecture: Bundles register service objects, that other bundles consume. Service publishing and binding is managed by the framework. This decouples service providers from service users completely (except for the need to agree on a service interface). Is there a way to limit (by configuration) what ser...

Servlet Filters and the OSGi HttpService

I'm working on an OSGi-based application that uses org.osgi.service.http.HttpService which does not support the use of Servlet Filters. Before I realised that I wouldn't be able to use Servlet Filters I was planning to apply a couple of existing Filters. These Filters set the appropriate HTTP headers to: prevent caching of responses c...

Is Struts 2 available as an OSGi bundle?

I have a server application that consists of multiple OSGi bundles, some mine, some third-party. One of the bundles provides a web frontend using Struts. The necessary Struts libraries live inside the web front-end bundle. Now I want to add a second bundle that provides another web front-end, with different dependencies and a very diffe...

How to run an OSGi framework within usual java-code?

Hi there! Can anybody give me an example how to use the osgi framework classes? I haven't a clue how to use those classes ... BR, Markus ...

Existing implementations of OSGi Configuration Admin Service?

We are considering to use Configuration Admin Service as a primary API for configuring components in our OSGi-based application. It would be nice if we could reuse some existing implementation so I'm trying to investigate and evaluate the most popular ones. I know there is: Apache Felix Config Admin (org.apache.felix.cm) Equinox Config...

Status of the OSGi Deployment Admin Service

OSGi applications are composed of modules called bundles. The problem is that any reasonably sized application will have a large number of bundles (could easily be hundreds, just look at the plugins directory of your Eclipse IDE), so that you want a coarser granularity than individual bundles when managing or deploying the application. ...