A project I am working on uses Spring 2.5 & JPA with Hibernate as a provider.
My DAO classes extend JpaDaoSupport, so I get my JpaTemplate using the getJpaTemplate() method.
The back-end database can get changed either by my application, or a third-party application.
When a third-party application changes the database (mostly configuration data changes), I need to provide the user of my application a way to invalidate all JPA sessions and reload the new data (i.e. invalidate all the hibernate sessions in the background). This needs to be "seen" by all concurrent users of my application.
How can I do this?