Is it possible to share same Spring INSTANCE across WARs?
I would like to know that can we share SAME Spring Bean Instance (created in x.WAR) to another war(y.WAR).
In my application there are number of beans like HibernateSessionFactory, DataSource etc which are same in all wars. And still they are getting created multiple times(n times for n war).
I want to share same bean instance across multiple war.
How can we achieve this in Spring?
Please note: I know how to share ApplicationContext across war using "parentContextKey" (here its example). This will just share same xml not the instance.