It seems what I asked is not really possible.
What is possible is
- for spring apps, use Gemini Blueprint which combines spring injection with OSGi
- for ejbs/servlets, use CDI/OSGi integration component. There exists PAX CDI for Pax Web and JBoss Weld OSGi integration (somewhat usable now, in process for JBoss AS), at least
- for any app, when else fails, programmatic usage of ServiceTracker works