1

In our current project we have the need to do some calculations asynchronously. We're using OSGi with bndtools on an Apache Felix 4. Any advice on how to do that? We're looking for something like http://docs.oracle.com/javaee/6/tutorial/doc/gkkqg.html

AndiH
  • 612
  • 1
  • 10
  • 24

1 Answers1

4

How about OSGi promises

  1. OSGi specification 705 Promises Specification
  2. excellent presentation on Asynchronous OSGi by Tim Ward
  3. Interview/Introduction OSGi Promises specification also from Tim Ward
  4. Code example from Apache Aries on Promises
Peter Kirschner
  • 927
  • 1
  • 9
  • 17
  • Great links. Thank you. Presumably we will use the felix Event mechanism. – AndiH Sep 29 '16 at 11:32
  • The Event Admin mechanism is not necessarily that useful because it provides no way to send a reply. I assume that you need to get back the results of your calculations? In which case Async Services is the way to go. – Neil Bartlett Sep 29 '16 at 22:40
  • Good to know. As a matter of fact we don't need the result. We trigger our calculations over database entries that have been stored in the database before. We just don't want to have these calculations synchronously because they would block the storage of future entries. – AndiH Sep 30 '16 at 06:50
  • Because basically this answer also fits my problem and should be helpful to others, I'll mark it as accepted. – AndiH Sep 30 '16 at 06:52