Is there a preferred way to run a client-server database so that updates from one application are immediately visible to another?
The way I managed this was to run PersistenceManagerFactory.getDataStoreCache().evictAll(true,MyClass.class) to ensure that a query on MyClass would contain updated data. This seems messy - is there a way to configure things so that the evictAll() call is not needed?