Create an XML configuration file
create a starting point in a form of XML configuration file and then in runtime, if needed, programmatically tune a specific configuration to suit our needs the best. Â EmbeddedCacheManager manager = new DefaultCacheManager("my-config-file.xml"); Cache defaultCache = manager.getCache();