service « osgi « Java Enterprise Q&A





1. Felix/OSGi: How to use SCR components that are not OSGi services?    stackoverflow.com

Apache Felix's SCR allows to declare (via annotations or XML) components that will then be instantiated, hooked up to their dependencies, and registered as OSGi services. It is also possible to skip ...

2. How can I filter OSGi service visibility?    stackoverflow.com

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 ...

3. Status of the OSGi Deployment Admin Service    stackoverflow.com

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 ...

4. Using XML parser implementation as OSGi service    stackoverflow.com

I am developing an application using OSGi (Equinox platform), and one of the bundles needs to parse XML files. So far I implemented this with SAX (javax.xml.parsers.SAXParserFactory) and I would like ...

5. OSGi in Netbeans, ClassCastException when retrieving service    stackoverflow.com

im having a ClassLoader issue. Since im quite an osgi newby, hopefully the answer isn't that hard :) I think it has to do with Compile vs. Runtime libraries. in Netbeans 6.7.1 project ...

6. Working example for a remote OSGI service    stackoverflow.com

I am new to programming with OSGI. Can anyone provide me a working example of a client/server osgi service invocation. I have been trying to acheve this for the last 2 weeks ...

7. ServiceTracker sometimes misses services?    stackoverflow.com

I have an OSGi service tracker with a filter. I noticed that there's a service that it misses ('addingService' is not called). When I use the services command in my osgi ...

8. What is the proper way of disabling an OSGi service at service start?    stackoverflow.com

I have created an OSGi bundle with an exposed (declarative) service. If I, when activate is called, notice that something is amiss such that I can not provide the service, I ...

9. OSGi : How can a Service auto discover client bundles deployed at runtime?    stackoverflow.com

I have a scenario where during the system install time, a few services were deployed on to the OSGi container and these services will be listening for other bundles that provide ...





10. What ordering guarantees are provided on ServiceListener and ServiceTracker calls?    stackoverflow.com

I'm trying to understand what guarantees are provided for service events. The OSGi spec says that ServiceEvents are synchronous, I've taken this to imply that a ServiceListener will not receive a serviceChanged() ...

11. What happens when a OSGi service using JNI is unregistered while in use?    stackoverflow.com

As I understand, OSGi services can be unregistered anytime, including when they are in use. Consider an OSGi service which internally makes a long-running JNI call. And while that JNI call is ...

12. Static content on Wicket application served from OSGi HTTP Service    stackoverflow.com

I'm developing a web application that is going to be served from an OSGi HTTP service, I register it using a WicketServlet, and I don't know how to serve static ...

13. How to use OSGi getServiceReference() right    stackoverflow.com

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 {
   ...

14. OSGi service trackers not always working    stackoverflow.com

Hey guys. We're using OSGi services in an Eclipse RCP application. To track them, we're using the org.osgi.util.tracker.ServiceTracker class. A sample code from the application looks like

mailServiceTracker = new ServiceTracker(context, MailService.class.getName(), ...

15. Are Blueprint Services Implemented as OSGI Bundle Services?    stackoverflow.com

I'm slightly confused and intrigued as to how blueprint bundles perform dependency injection with an OSGI container. I'm aware that plain old OSGI incorporates a service registry and bundle headings/interfaces to allow ...

16. OSGI bundle (or service)- how to register for a given time period?    stackoverflow.com

Search did not give me a hint, how can i behave with the following situation: I'd love to have 2 OSGI implementations of the same interface: one is regular, the other should ...





17. Exposing an OSGi SOAP service with SCA with complex types    stackoverflow.com

I have written an OSGi service and exposed the implementation with SCA using the binding.ws. This works great for simple types, however I would like to use complex types in my ...

18. How to provision OSGi services per client    stackoverflow.com

We are developing a web-application (lets call it an image bank) for which we have identified the following needs:

  • The application caters customers which consist of a set of users.
  • A new customer ...

19. How to control service visibility    stackoverflow.com

Is there a way to control the visibility on services based on the filter of the listener? I was disappointed to realize that the EventHook service can only control which bundles receive ...

20. How do I specify both an interface and its type parameters when requesting & referencing a service in OSGi DS?    stackoverflow.com

I have an interface like:

interface Foo<T> {
    void doSomethingWith(T t);
}
And some implementations like:
class Bar implements Foo<String> {
    void doSomethingWith(String s) {
     ...

21. Oscar OSGi remote shell service    stackoverflow.com

I'm currently attempting to get my head around OSGi (specifically the Oscar implementation) in attempt to do some funky things with the JVM available on an embedded control system ...

22. Service reference in OSGi/blueprint not working properly    stackoverflow.com

I currently have two OSGi bundles (bundle1 and bundle2) both both exposing services through a blueprint in an EBA. In bundle2's blueprint.xml i want to reference a service from bundle1 and ...

23. How to consume multiple services using ServiceTracker efficiently?    stackoverflow.com

I would like to use ServiceTracker in order to consume the services published by our company. Instead of creating new ServiceTracker for each service I want to consume I thought it would ...

24. ServiceTracker doesn't find an existing service    stackoverflow.com

I am using ServiceTracker in order to located registered services in our OSGi environment. I have got this code in the Bundle Activator start method:

    logger.debug("looking for MyService");
  ...

25. Eclipse on macosx: org.osgi.service.application.ApplicationException: No application id has been found    stackoverflow.com

I had a problem on my macbook pro and a fresh installation of eclipse.
I would like to share the solution I got after some hours of puzzling. Problem: Starting eclipse Helios does ...

26. Is there a way in OSGi to make sure only one things has access to a service at a time?    stackoverflow.com

I have an interface that defines a device in a system. The devices are intented to be used by only one entity at a time. I would like to ...

27. org.osgi.service.application.ApplicationException: No application id has been found    stackoverflow.com

!ENTRY org.eclipse.osgi 4 0 2011-09-13 10:30:39.110
!MESSAGE Application error
!STACK 1
org.osgi.service.application.ApplicationException: No application id has been found.
    at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:262)
    at org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
  ...

28. Are there existing enterprise implementations of the OSGi config admin service?    stackoverflow.com

I know there are some open source implementations of the config admin service (like from Apache Felix). The problem with these implementations is that they are limited to a single server. I am ...

29. OSGi services - best practice    stackoverflow.com

I start loving OSGi services more and more and want to realize a lot more of my components as services. Now I'm looking for best-practice, especially for UI components. For Listener-relations ...

30. Exposing JAX-WS remote service binding in OSGi?    stackoverflow.com

I have a web service that I have JAX-WS generated client bindings as below:

// web service client generated by JAX-WS
@WebServiceClient( ... )
public class WebService_Service extends Service {

    public ...