-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: help needed to integrate hibernate and jbosscache in tomcat
PostPosted: Tue Feb 01, 2005 5:50 pm 
Beginner
Beginner

Joined: Tue Feb 01, 2005 5:26 pm
Posts: 24
Location: dallas
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


Top
 Profile  
 
 Post subject: fixed the problem posted
PostPosted: Thu Feb 03, 2005 11:54 am 
Beginner
Beginner

Joined: Tue Feb 01, 2005 5:26 pm
Posts: 24
Location: dallas
hi all,

i fixed this problem, the problem was that i was using an old version of jb0sscache.jar file.

regards,
praveen


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.