Joe
Joe

Reputation: 15349

How to disable the Ehcache update checker?

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.

Upvotes: 32

Views: 15150

Answers (2)

Sven
Sven

Reputation: 689

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");

Upvotes: 38

Anthony Dahanne
Anthony Dahanne

Reputation: 5053

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>

Upvotes: 18

Related Questions