Hi,
We have two web-app using common data access module. One webapp uses spring container and another not. But the second one needs access to database. Database DAO beans are in spring.
so, we created a ApplicationContextAware class with a static method getContext() which loads spring DAO beans. Now both works fine.
One requirement is like when one webapp do some changes in database the other one needs to be notified. Hibernate sure has event package, but, in our case the Hibernate SessionFactory is in different container.
so, we created a Hierarchical ApplicationContext and tried to access using beanRefContext.xml, but because of separate webapps, the container is loaded twice, once for each web app.
Now my question is "is there any way to publish the ApplicationContext by any mean so that any other modules getting started any time just lookup and get if available the ApplicationContext?"
Please help.
Thanx.


Reply With Quote
