The requirement is to create caches dynamically, without specifying it in the xml file. The document is unclear as to how to do that.
If you can use certain pattern for the caches you can specify just a template with wildcard: http://infinispan.org/docs/stable/user_guide/user_guide.html#cache_configuration_wildcards
If you want to configure caches programmatically, you need to use Infinispan API:
JCacheManager jcManager = ...;
EmbeddedCacheManager manager = jcManager.unwrap(EmbeddedCacheManager.class);
Ok, but how would this work for the RemoteCacheManager ?