Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable the Ehcache update checker?

Tags:

ehcache

12:18:55,541 INFO [UpdateChecker] New update(s) found: 2.0.0 [http://ehcache.org/news.html]

How do I suppress ehcache checking for new update(s), this is happening while loading my j2ee application and when ehcache is getting initialized.

like image 659
Joe Avatar asked Mar 09 '10 06:03

Joe


2 Answers

One way is to place a ehcache.xml file on your classpath with the attribute updateCheck="false" in the root tag.

For example:

<ehcache updateCheck="false">
  <defaultCache
    maxElementsInMemory="0"
    eternal="false"
    timeToIdleSeconds="0"
    timeToLiveSeconds="0"
    overflowToDisk="false"
    diskPersistent="false"/>
</ehcache>

Another way is to set an environment variable:

System.setProperty("net.sf.ehcache.skipUpdateCheck", "true");
like image 112
Sven Lange Avatar answered Nov 20 '22 20:11

Sven Lange


simply put, in your ehcache.xml configuration file, make sure you disable the updateCheck :

<ehcache updateCheck="false">

<defaultCache
        maxElementsInMemory="0"
        eternal="false"
        timeToIdleSeconds="0"
        timeToLiveSeconds="0"
        overflowToDisk="false"
        diskPersistent="false"
        />
</ehcache>
like image 21
Anthony Dahanne Avatar answered Nov 20 '22 21:11

Anthony Dahanne