osgi

C++ modularization framework (like OSGI) ?

I found one SOF http://www.codeproject.com/KB/library/SOF_.aspx , Are there anyother stable frameworks for modularization in C++ ? ...

com.sun.management.OperatingSystemMXBean use in an OSGi bundle

I have some legacy code that was used to monitor my applications cpu,memory etc that I want to convert to a bundle. Now when i start this bundle its complaining Missing Constraint: Import-Package: com.sun.management; version="0.0.0" I had used the OperatingSystemMXBean to get access to stats on the JVM. My question is can I use this...

Looking for a good dev environment for OSGi bundles

Hi, I'm currently investigating in the field of dev environment for OSGi bundles. My goal is to find a way to develop, test and debug with ease the bundles I'll be coding. Besides, I have some "cultural" requirements. I want to be able to use java continuous integration servers (typically, Hudson) As a consequence of that first requi...

JDBC/OSGi and how to dynamically load drivers without explicitly stating dependencies in the bundle?

Hi, This is a biggie. I have a well-structured yet monolithic code base that has a primitive modular architecture (all modules implement interfaces yet share the same classpath). I realize the folly of this approach and the problems it represents when I go to deploy on application servers that may have different conflicting versions of...

Is javac enough to build an OSGi bundle?

To produce a bundle from source using a tool such as javac, you need to provide it with a linear classpath. Unfortunately, it won't work in some situations still perfectly legal from an OSGi point of view: dependencies with embedded JAR in them; same packages contained by different dependencies. Since javac doesn't understand OSGi me...

OSGI classcast exception on felix

Hi, i'm fairly new to osgi and am trying to get a functional proof of concept together. The setup is that my common api is created in a bundle creatively named common-api.jar with no bundle activator, but it exports all it's interfaces. the one of interest in this situation is DatabaseService.java. I then have a Second bundle called s...

How to use OSGi getServiceReference() right

Hello, I am new to OSGi and came across several examples about OSGi services. For example: import org.osgi.framework.*; import org.osgi.service.log.*; public class MyActivator implements BundleActivator { public void start(BundleContext context) throws Exception { ServiceReference logRef = context.getServiceReference(Log...

How to use OSGi from java application

Hi! I'm new whith OSGi, but it is interesting. Is it possible to interact between osgi bundles and java application? If it is possible, how? thanks! The context is that I have a big Java SE application(author is another programmer) with many dependencies. First my goal is to add new functionality and second - change architecture. I'll t...

View osgi bundles' dependencies?

Hello all, I am looking for a tool in Eclipse that I can view graphically all osgi bundles' dependencies. Anyone has any ideas, please? Thanks ...

What is a reasonable OSGi development workflow?

I'm using OSGi for my latest project at work, and it's pretty beautiful as far as modularity and functionality. But I'm not happy with the development workflow. Eventually, I plan to have 30-50 separate bundles, arranged in a dependency graph - supposedly, this is what OSGi is designed for. But I can't figure out a clean way to manage d...

How to force a reload of the log4j configuration in equinox?

I have a running equinox instance, how do I force equinox to reload the log4j configuration (if possible at all)? (it just jakes to much time to shutdown and restart the server) ...

OSGi Logging with spring-DM extender not logging

My Setup: I am able to create a simple OSGi bundle with Log4J as my logging framework and when deployed to my OSGi container (Equinox) it works great my logging is configured very simply with a seperate bundle fragment that configures my logging. This setup does not have spring involved and it works really nicely. My Issue: I am convert...

Why should I prefer OSGi Services over exported packages?

Hi, I am trying to get my head around OSGi Services. The main question I keep asking myself is: What's the benefit of using services instead of working with bundles and their exported packages? As far as I know it seems the concept of Late Binding has something to do with it. Bundle dependencies are wired together at bundle start, so t...

Unable to acquire a connection from driver [null], user [null] and URL [null]. / EclipseLink 1.2 / Spring 2.5.6 / OSGI

Hi, I try to deploy a project where EclipseLink JPA is used as ORM tool on an OSGI platform. The project works fine when running outside of a OSGI container. Version used : Spring 2.5.6, EclipseLink 1.2.0 Unfortunately, I get this error on the OSGI platform : Exception Description: Unable to acquire a connection from driver [null], u...

Embedded ActiveMQ broker in Spring/OSGi problems.

Hello fellows, I ran into a very disturbing issue that's been puzzling me for a while and I was wondering if anyone could give me some insight on this. Basically, what I'm trying to do is set up an embedded ActiveMQ broker in the Spring context of one of my OSGi bundles (in Felix). I have downloaded the bundle and all dependencies list...

Link Maven OSGi to Maven NetBeans Platform Project

I am using NetBeans 6.9 Beta and I would like to accomplish the following: Set up a project representing the main application using Maven (for instance "Maven Project", "Maven NetBeans Application") Ideally, the project should only contain the necessary libraries to run in Apache Felix (I would like to be able to right-click the projec...

P2 repository for org.eclipse.test bundle

Where can I find a p2 repository containing org.eclipse.test? ...

What new in Equinox 3.5.2?

The Eclipse and Equinox teams have released a new version of Equinox framework which is 3.5.2. I am currently using Equinox 3.5.0 and considering to upgrade to Equinox 3.5.2. However, I could not find any sites that mentions what is new in Equinox 3.5.2 and what bugs have been fixed in this new version, even in the website: http://downlo...

Class loading issues with BIRT

We bundle the BIRT runtime with our application(EAR file) and everything was fine with version 2.2 which we were using until recently. However when we upgraded to BIRT 2.5.1 we are running into class loading issues. The BIRT runtime packages a xerces.jar file which is the root cause for the class loading conflict becuase there is anothe...

embedding maven into OSGi application

Hi, I am trying to call MavenCli from my OSGi plugin project. I have added the correct libraries to my build path and to the manifest. I believe that I have done everything correct so far because when I add a main method to the class that calls maven and run it in eclipse, everything works as expected. When I run it from my OSGi plugin,...