That sounds great. Pardon, where is the feature request for that? I would like to 'watch' it so that I can keep track of its progress :-) ..also, are there any tentative date for the release which will contain that feature (because I'm planning to hack it out myself)? :-)
Re: pre-loading
My plan is to have another application running besides my main applications, let's call this my "replication-manager". replication-manager's job is to handle all things related to replication, which means the pre-loading and the scheduled refreshes. And replication-manager will share its 2nd level hibernate cache with my other applications. Thus, when those other applications starts up, they will just join replication-manager and the cached entities would already be available to them.
Also, I'm planning to index these entities via Compass/HibernateSearch and store the lucene document in Hazelcast (
any tips on this one? :D ). That's because currently, some of our sql searches are pretty slow which is why I want to replicate these data into a lucene document and conduct my searches there instead. And since those tables are my whole search space, I would need to replicate them as a whole and not just an on-demand. These replication to a Lucene document would also be handled by "replication-manager".
So idealy, I will not need to persist to the disk because the cached entities and the lucene documents will be available once an application joins replication-manager. But while developing against replication-manager itself, it can be really useful.