osgi 2 « osgi « Java Enterprise Q&A





1. Weird missing constraint with Logback under Eclipse    stackoverflow.com

I have a feature-based launch configuration for an Eclipse RCP product. The feature includes ch.qos.logback.classic, ch.qos.logback.core 0.9.29, and org.slf4j.api 1.6.1. "Validate plugins" shows this error:

Could not find matching capability ...

2. Unit-Testing OSGi-Components    stackoverflow.com

I'm currently thinking of "How to design an OSGi component so that it's easy to write tests for it with frameworks like jUnit and Mockito". Mocking inter-bundle-dependencies is quite easy ...

3. When to use OSGi EventAdmin and when not?    stackoverflow.com

I have a general question regarding the usage of the OSGi EventAdmin service. I'm currently using it in a setting where potentially thousands of events can be generated per second. My ...

4. osgi: Using ServiceFactories?    stackoverflow.com

I'm currently trying to get a simple bundle containing a Service Factory running. This is my factory class:

public class SvcFactory implements ServiceFactory<ServiceB> {

    @Override
    public ServiceB ...

5. How to get Eclipse to recognize a .target file for OSGI    stackoverflow.com

I moved to a new computer and moved my OSGI project to it. I have a .target file that is now recognized as xml, but in my last setup, I had ...

6. Using OSGi to implement auto-update    stackoverflow.com

What I'd like to do is create a "launcher" framework for my code that, given a URL and a predefined versioning scheme: 1) go check if an update exists 2) download the updates 3) ...

7. Parametrized remote calls from OSGi client    stackoverflow.com

I am looking for developers that may have encountered the same problem that we have. Here is our system:

  1. a standard JVM running on one server, it uses Jini to publish a ...

8. Passing arguments to OSGi application    stackoverflow.com

I'm in a team that is converting a suite of Java applications to use OSGi. Previously, we used our own home-brew class loader system that has some similarities to OSGi, but ...

9. Neighbor Discovery?    stackoverflow.com

Hello, ...





10. What is the best technique for adding a web interface to an OSGi application?    stackoverflow.com

So, I have a bunch of OSGi bundles (.jars) which perform a bunch of "business logic". All is good and up until now I've been interfacing with the bundles using the ...

11. Distributed RMI - OSGI method invocation problem (but lookup works)    stackoverflow.com

I am running an OSGI application that uses a standalone application in the back to execute database access. The standalone is remote and provides a number of objects with RMI. The ...

12. OSGI ServiceTracker and thread-safety    stackoverflow.com

ServiceTracker is defined as a Thread-Safe class in the OSGI 4.2 spec The usage of this class is pretty straight forward. Most of the examples employing ServiceTracker I could find on the internet ...

13. Is it really safe to have an unsynchronized static BundleContext reference in the BundleActivator?    stackoverflow.com

If I create a "Plugin Project" in Eclipse, it creates a default BundleActivator implementation that just sets the BundleContext in an unsynchronized static field. Since it also creates a public static getter, ...

14. OSGi Benefits Over JEE?    stackoverflow.com

So I took some time this afternoon to finally sit down and begin reading up on the mysterious and elusive "OSGi" and its so-called bundles. OK, so I think I get it. ...

15. Class not found: org.eclipse.jdt.core.JDTCompilerAdapter    stackoverflow.com

I'm Using Eclipse SDK to develop my bundles. But whenever I want to export (File -> Export -> Plug-in Development -> "Deployable plug-ins and fragment") the Bundle I receive the following ...

16. Passing osgi runtime parameters to testNG    stackoverflow.com

We have been executing PDE Junits in Ganymede. Now we want parallel execution. To do this we switched to TestNG on Ganymede. The refactoring of Junits was easy. But while executing ...





17. OSGi DS & deactivating a component manually    stackoverflow.com

Is it valid to deactivate a component in OSGi manually if I am using Declarative Services? For example, let's say I have a component, with the implementation:

//component
class Overseer(){
     ...

18. Granularity of Component-Based Architectures    stackoverflow.com

Although I'm a Java developer and this is question concerns OSGi and modularity according to Java, the question really applies for any object-oriented, 3GL. I'm beginning to grasp the concepts of truly ...

19. how to deploy Sip communicator(jitsi) on another existing osgi framework, and can control it, by osgi console    stackoverflow.com

i m using sipcommunicator(jistsi). it start felix then deploy its bundle, when i close sipCom,it uninstall all bundle then close felix framework too. Now i deployed my bundle, but i want ...

20. OSGI on Websphere ThreadFactory lookup    stackoverflow.com

I'm new to OSGI and working on such project that runs on websphere. I have a simple scheduler, I used java.util.concurrent.ScheduledExecutorService like so:

private ScheduledExecutorService scheduler;
...
scheduler = Executors.newScheduledThreadPool(corePoolSize);
since my application is running inside ...

21. OSGi classloader issues    stackoverflow.com

I am very new to OSGi. I am developing a plugin A (osgi bundle), suppose A which depends on libraries, suppose B-1.0 and C-1.0. Now If the library C-1.0 depends on library ...

22. OSGi using SpringDM on Virgo, running from Eclipse, MAC vs Windows development    stackoverflow.com

This question is more of type "has anyone experienced something similar before and if so, what was the issue?". At work I use an iMac to do my daily programming. After some ...

23. Do you think OSGi has a solid future in enterprise apps, or it is going to fade away like the whole ESB thing appears to be?    stackoverflow.com

As per title. I don't know if this is the right place or way to ask this, admins feel free to edit/move/close the question if appropriate. I'd like to get pointers to ...

24. Does Aries managed-service-factory also manage properties?    stackoverflow.com

I'm using Apache Aries 0.2 in Servicemix 4.3.1 and creating a cm:managed-service-factory. Creation of the services with .cfg files works fine (except for #ARIES-584), but the properties from ...

25. Changing the start level state of the OSGi runtime    stackoverflow.com

OSGi bundle start levels can be defined per bundle during runtime per the BundleStartLevel API. The OSGi framework offers an initial start level "org.osgi.framework.startlevel.beginning", which the framework takes the runtime to at ...

26. Where is the OSGi Compendium for 4.3?    stackoverflow.com

Somewhat silly question I'm sure, but I'm not familiar with the OSGi specification process. When should we expect a Compendium for version 4.3 of the specification?

27. OSGi : Are bundles/jars cached?    stackoverflow.com

I was always wondering: When I install a jar in OSGi, for example with "install file:///xyz" or with "install http://xyz.org/my.jar" - does OSGi only store a reference? Or does ...

28. Different configuration/run "modes" under OSGi?    stackoverflow.com

I have a Java application built with OSGi that I want to run in different modes, say a remote & local data source. I would like to be able to build ...

29. OSGi and Component Management    stackoverflow.com

I have a dynamic application that uses OSGi to load modular functionality at runtime. OSGi bundles contain the modular functionality and the application loads the bundles when they are needed. This ...

30. FileAppender not writing anything in log4j?    stackoverflow.com

I have a small problem using log4j and FileAppender. When I am using ConsoleAppender, everything is working well but FileAppender won't ever produce a file (or write into a file). Moreover, ...

31. rename a word in *.java files of main eclipse application as well as OSGI application    stackoverflow.com

i am trying to make an OSGi/Runtime [desktop based swing] application in which i require to the rename a file with an appropriate name given in JTextField. now i know it ...

32. Choosing what native library to load depending on system setup    stackoverflow.com

In our OSGi code, we are using Bundle-NativeCode manifest headers to choose what native libraries to load for Windows or Linux. The problem arises when one of the libraries we need to ...

33. NetBeans 7 + OSGI    forums.netbeans.org

34. OSGi with netbeans    forums.netbeans.org

35. OSGI with NetBeans 7 ??    forums.netbeans.org

36. exception management strategies osgi    coderanch.com

Hi All, I have a problem with some OSGI/RCP stuff related to exception management. I'm looking for strategies/thoughts on how exceptions can be best managed or what the most common ways of dealing with them are: For example: we have an application with some extension points, and we have plugins for it. most plugins contribute perspectives and views and sometimes actions ...

37. OSGI distribution    coderanch.com

38. Questions about OSGi    forums.oracle.com

39. OSGi and UnknownHostException    forums.oracle.com

40. problem w/ javamail in osgi    forums.oracle.com

To answer my own request, the problem is causes by javax.activation being in a different classloader than javax.mail. javax.activation needs to read META-INF/mailcap from the javamail artifact but can't see it. To fix this, I put javax.activation and javax.mail in the same bundle. With Equinox, you can use Eclipse-BuddyPolicy with Eclipse-RegisterBuddy but that doesn't work in other OSGi containers.

41. OSGi experiances?    forums.oracle.com

Anyone around here care to share their insights into their experiences with a OSGi framework? I use Eclipse and it was built on this so it is obviously a capable idea. I am a corporate developer and none of our stuff is for resale or anything like that. There are four developers on my team and we spend most of our ...

42. OSGi VS ServiceLoader (SPI)    forums.oracle.com

Hi all, I'm new to OSGi (interested to spring-osgi) but before spending time to test spring-dm-server I would like to be sure to understand OSGi outcome. After reading and comparing Java ServiceLoader (http://java.sun.com/developer/technicalArticles/javase/extensible/) to OSGi, I'm interested to share some of my thought to have feedbacks. Context: Build a modular server application (exposing services using RMI). Using OSGi: modules are OSGi ...