-->
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: Moving ehcache.xml when using for Hibernate
PostPosted: Mon Feb 23, 2004 10:37 am 
Newbie

Joined: Mon Sep 08, 2003 8:00 am
Posts: 7
Location: Weiden, Germany
Hi, well I am trying to organise my webapp and trying to move all config files to a config subfolder.

I succeeded.... almost - ehcache seems to ignore classpath and is looking just in rootDir of my webapp (WEB-INF/classes). I tried already changing setclasspath.bat of tomcat4 but it woun't work!

I see no possibility to do it programatically too without writing code for ehcache management which I don't need because Hibernate does this much better as I would and renders all cache management totally transparent to me.

So the question is, is there any painless posibility to configure ehcache(hibernate) to use ehcache.xml located not under WEB-INF/classes ?

kind regards
reinis.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 23, 2004 10:44 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
I think you could workaround by writing your own CacheProvider which does CacheManager.create(urlToYourFile) once at the beginning. There is no config setting for it though.


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.