hi all,
i am new to hibernate, i have couple of questions.. i am trying to integrate jbosscache to already existing hibernate application. the steps sofar which i have taken are
1) setting the property "hibernate.transaction.manager_lookup_class" ="net.sf.hibernate.transaction.JBossTransactionManagerLookup"
2) setting the "hibernate.cache.provider_class" ="net.sf.hibernate.cache.TreeCacheProvider"
3) and added a cache tag in the hibernate mapping files which ever needs to be cached i.e <cache usage="transactional">
4) i downloaded "jboss-cache.jar" and "jgroups.jar" from the hibernate site and added them to the classpath.
when i tried to run my application it breaks while its trying to do "instantiating and configuring caches". the output shown is
-cache provider: net.sf.hibernate.cache.TreeCacheProvider
- instantiating and configuring caches
i read in some posts about the "treecache.xml" file. is it necessary when using the jbosscache. if it is necessary where should i place the file in the application.
I dont use a configuration file, insted i generate the object of configuration programatically and set the properties needed.
like eg.
Configuration cfg = new Configuration();
cfg.setProperty("name","value");
thanks a lot in advance.
Regards,
praveen
|