Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
[b]Hibernate version:3.0[/b]
[b]Mapping documents:[/b]
[b]Code between sessionFactory.openSession() and session.close():[/b]
[b]Full stack trace of any exception that occurs:[/b]
[b]Name and version of the database you are using:[/b]
[b]The generated SQL (show_sql=true):[/b]
[b]Debug level Hibernate log excerpt:[/b]
Hi, am actually developing an application 'A' where am using hibernate and ehcache for caching of objects. I also develop a simple interface where I could see the statistics of the cache. Am using tomcat 5.0 and my project is in a specific context. Up to now everything is ok.
My problem arises when I develop another simple aplication 'B' which is in another context. This simple application consist of only 1 jsp page in which there is an input of type file i.e
<input type="file" name="txt_file" id="txt_file">
When I click on the browse button and select the 'ehcache.xml' file to obtain the cache statistic for my application 'A' I got 0 for every method called except for the method cache.getName() and cache.getMaxElementsInMemory(). When I call cache.getSize() it returns 0. But if I use the interface found in application A to view the cache statistics I got the required values.
The only difference when am using application B which is in another context to view cache statistics of application A is that I create a CacheManager from a configuration in an InputStream, whereas in the first case I create a CacheManager from a configuration resource in the classpath.
thanks in advance