|Spring context visibility between modules [message #660981]
||Tue, 22 March 2011 14:49
| damien charpentier
Registered: March 2011
I am using Spring DM 1.2(Virgo) and it works great so far but i am having a design issue.
Imagine two bundles, bundleA and BundleB.
Object ConsumerA from BundleA uses an object ProducerB from BundleB.
Now ProducerB encapsulates a bean BeanC injected from the spring context via @Autowired annotation. BeanC is created with information from a property file.
Now, when ConsumerA calls ProducerB, BeanC is not in its scope. A beanNotfoundException is thrown.
I did make it work by referencing BeanC as a service in the service registry but it is not what i want in the end because it is too tight coupled.
Do you have any idea about it? Maybe to redesign how i am doing it?
For more info, my producerB is a Hibernate constraint validator. ConsumerA is JSF2 BeanValidator.
[Updated on: Tue, 22 March 2011 14:50]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.05200 seconds