AnsweredAssumed Answered

OSGi Service Task?

Question asked by ancoron on Jan 21, 2011
Latest reply on May 25, 2011 by rodolfobarbeiro
I already saw the discussions about EJB tasks and I also see that Activiti shall be nicely integrate into OSGi environments (I'm about to put this to the test with GlassFish 3.1/Felix).

So I wondered why also not support OSGi Services? It shouldn't be that hard but we must presume that we are already running inside an OSGi environment. Also I imagine the following:

  • Declarative/POJO Services: invoked like stateless beans

  • Managed Services: invoked with optional (even runtime determined) configuration attributes (by requiring a ManagedServiceFactory of course)
Also within OSGi we must also face the issue of services being unavailable for some time (updates, something broke but the admin can fix online, …) and so processes by default pause in such a situation until the service is available (service listeners are a great thing here to avoid polling) or - if the process has been specified with some timeout - pause with a failure mark waiting to get resumed or failed manually.

What do you think on that?