This isn't a bug, but a question. I've read through the relevant documentation and I'm still not sure. In Hibernate In Action it states that the second level cache is scoped to the session factory.
Our situation is that we need multiple session factories. One session factory provides general access to data in the db, where the other is primarily for dynamically configured objects. The second cache has a small subset of the primary cache's objects as well, which are used for certain information related to the dynamic objects.
I believe there are two questions:
* Is Hibernate in Action correct?
* Is there a way to control this?
I do realize that we could not use the cache for the shared data, but our access patterns lead me to think that these will be important from a scalability point of view.