This question is a followup question to Spring framework download as OSGi bundles.
I am looking for a framework that is capable of doing the following:
- it has to work in an OSGi environment
- some concept of beans/services/whatever you want to call it
- this beans/services need to be able to have a session scope, ideally tied to a web session
- injection of this beans/services into the components that need them via dependency injection (optional but highly appreciated - and I guess a framework that can do the stuff from above most likely can also do dependency injection)
- must be considered reliable and stable, with good outlook on future support
Originally I was looking into Eclipse Gemini Blueprint, but (a) I have troubles to get it up and running (refer to question above) and (b) not only an answer to my question showed some concerns but also I am not so sure about using it anymore myself. I can't find much references that it is widely used, the forum is almost dead (like 8 pages in 4 years) and it seems there are not many contributors on git involved (23 commits for whole 2013). I don't want to end up with a framework thats considered abandonware in less than a year.
My question now is: Is there any framework around (besides Eclipse Gemini) that is capable of session-scoped beans and preferrably dependency injection? I also accept a "no" as an answer as I start to fear that there is really none out there. Alternatively you can talk me back into using Eclipse Gemini if you have good arguments.
Check out Pax CDI.
Don't be put off by the current version, it's maturing fast and is pretty stable. A colleague of mine uses it for his pet project and he seems to be quite happy with it.