Carlos Salinas Messages: 32 Registered: March 2011 Location: Avd. de la Argentina 132,...
I tested the problem having two bundles. The first one is a Web bundle that consumes a service registered by the second jar bundle.
When the web bundle invokes a method in the service api, this invokation produces the creation of @Configurable objects in the method's implementation, having this annotated objects spring dependencies to be injected by IoC. BUT the creation ALWAYS produces an Spring exception, because the Jar Bundle's ApplicationContext cannot find those bean definitions.
BUT IF i put the bean definitions in Web Bundle Spring descriptors, needed to create those Configurable Objects inside the Jar Bundle. Then they are injected.
My doubt is: How Can an @Configurable Object look up its bean dependecies in another ApplicationContext diferent than it belongs to?