-->
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.  [ 1 post ] 
Author Message
 Post subject: "Tomcat only" and second level cache
PostPosted: Mon May 17, 2004 2:36 am 
Newbie

Joined: Fri Oct 03, 2003 6:47 am
Posts: 15
Hi,
I have a question about using Hibernate (2.1.3) + second level cache within a webapplication running inside of Tomcat (5.0.24). I use MySQL 4.x as my RDBMS. No clustering is used and no other system updates the database from "another way in" then the "Tomcat way".

I use EHCache as my cache provider and I have set transaction factory to
net.sf.hibernate.transaction.JDBCTransactionFactory.

This "seems to work", but when reading the docs this should not be used, also I get some log-entries indicating that second-level-cache should not be used without JTA.

My wish is to be able to use "Tomcat-only" + second-level cache due to the simplicity of things. I guess that one way would be to utilize Spring for transaction management but at this stage my project has gone to far to make that level of refactoring.

Is it possible to use second-level cache with this setup?

What could go wrong ignoring these warnings and combnie JDBCTransactionFactory with second level cache?

Thanks // Torben Norling


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

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.