Does anyone know of a way to deploy multiple JbossCaches each using it's own unique treecache.xml configuration?
I have 3 Hibernate session factories deployed in one Jboss instance. I would like to be able to configure each session factory with it's own unique JbossCache configuration. The second level cache configuration will be different for each session factory. Right now, I don't see how this is possible. Hibernate is searching for a single file, "treecache.xml" by default. Currently, my only option appears to be consolidating all 3 configurations into the one file. I end up with non-applicable regions in each of the 3 JbossCache instances.
If there is currently no solution for multiple unique JbossCache configs are there any plans to support this in the future?
Thanks.
|