akka/akka — pull request #500 by gertv (2012-05-31 21:25:33+00:00)
Title: Proposal for an akka-osgi module

L.S.,

This is a very premature pull request - the main goal is to get some feedback on whether or not an akka-osgi module would be useful in the first place and what people would expect from it, so ignore the messy code for now ;)

One part of functionality is pretty much done - it's a convenience actor implementation that allows people to bootstrap an Akka ActorSystem from an OSGi BundleActivator, taking care of some initial classloading pitfalls. There's an example of what the Actor for the Pi example looks like in the docs' samples. I'm also using that actor already to build a simple example for inclusion in Apache ServiceMix.

The second part of functionality that's being added is a Blueprint namespace handler (Aries only, namespace handlers are implementation-specific in Blueprint at the moment, unfortunately) - it can currently be used to create an ActorSystem and then add Actors with Props(). Not sure the latter actually makes sense - personally, I'm currently inclined to ditch that one again because once people start setting up more elaborate Actor hierarchies, the XML syntax is probably going to get to bloated and people will want to do that in code anyway. You can already inject the into another bean that can do the rest of that configuration. Perhaps we'd better add e.g. an to configure the ActorSystem itself instead.

Anyway, feedback/suggestions welcome...

Regards,

Gert