Hi,
I´ve got the problem to have to use Hibernate 3.1 with a difference eh-cache config file.
I´ve put a file named
ehcache-jobserver.xml
in the the root folder of the classpath (and really asserted that it is there).
With the following system properties this file cannot be found using Hibernate 3.1
Code:
System.setProperty("net.sf.ehcache.configurationResourceName", "ehcache-jobserver.xml" );
Also
Code:
System.setProperty("net.sf.ehcache.configurationResourceName", "/ehcache-jobserver.xml" );
does not work.
Both result in the error output
2006-12-11 16:51:40,463 WARN [DBReconnect-Thread] (Configurator.java:126) - No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/E:/Libs/java_lib/hibernate-3.1/lib/ehcache-1.1.jar!/ehcache-failsafe.xml
When I´m using Hibernate 3.2 and the slightly different properties it works fine:
Code:
System.setProperty("net.sf.ehcache.configurationResourceName", "ehcache-jobserver.xml" );
Does someone have a similar problem or knows how to teach hibernate
3.1 to use a different ehcache-config file?
Th@nx,
Christian