
Originally Posted by
templth
Hi Daniel,
Do you expose the needed beans by the server.remote bundle as OSGi services? As a matter of fact, each bundle contains its own and independent Spring container and you can't do dependency injection between them with classic Spring reference... The best practise to make a bundle use beans of another bundle is to use the OSGi service registry. The latter allows making the link and provide a robust way to correctly handle OSGi dynamics (helped by Spring DM!)
Otherwise, if you want to force the start up of your server.core bundle before your server.remote bundle, you can use the startlevel feature of OSGi.
Hope it helps you!
Thierry