Downloading
The server is available as follows:
SourceForge
Download from
http://sourceforge.net/project/showfiles.php?group_id=93232. There are two tarball archives in tar.gz format:
ehcache-server - this contains the WAR file which must be deployed in your own web container.
ehcache-standalone-server - this contains a complete standalone directory structure with an embedded Glassfish V3 web container together with shell scripts for starting and stopping.
Maven
The Ehcache Server is in the central Maven repository packaged as type war. Use the following Maven pom snippet:
<dependency>
<groupId>net.sf.ehcache</groupId>
<artifactId>ehcache-server</artifactId>
<version>enter_version_here</version>
<type>war</type>
</dependency>
It is also available as a jar-only version, which makes it easier to embed. This version excludes all META-INF and WEB-INF configuration files, and also excludes the ehcache.xml. You need to provide these in your maven project.
<dependency>
<groupId>net.sf.ehcache</groupId>
<artifactId>ehcache-server</artifactId>
<version>enter_version_here</version>
<type>jar</type>
<classifier>jaronly</classifier>
</dependency>