Make ehcache config resource configurable

#2343