Upgrading from JCS 1.3 to 2.0 Thomas Vandahl

This document lists a number of things that changed in Commons JCS 2.0.

The main difference is the move to the Apache Commons project which lead to the change of the package names and Maven coordinates. So in all your code replace with The Maven coordinates change from org.apache.jcs jcs 1.3 ]]> to org.apache.commons commons-jcs-core 2.0 ]]>

JCS now uses different cache access objects depending on if you want to use cache groups or not. This was necessary because the cache access objects are now generic which saves you all the casts but doesn't allow different objects in the same cache anymore. You now use cityCache = JCS.getInstance( "city" ); GroupCacheAccess countryCache = JCS.getGroupCacheInstance( "country" ); ]]>

Here again, change all package names in configuration entries from e.g. to and all MaxLifeSeconds lines to MaxLife like to

The IndexedDiskCache recycle bin is no longer limited in size. So remove all references to MaxRecycleBinSize from the configuration files.