From what I can tell, your cache is probably not using the configuration you think it is.
I don't see anything in your application that would force the "myCache" configuration to be defined within the "myContainer" cache container.
Consequently, calls to EmbeddedCacheManager.getCache("myCache") will return a default local cache using Infinispan defaults.
To ensure that a configuration defined within the Infinispan subsystem is available for use within your application you need to either:
1. Add a dependency on this configuration to your application, e.g. by injecting it via @Resource or by defining a <resource-ref/> or <resource-env-ref/> in your deployment descriptor.
e.g. @Resource(lookup = "java:jboss/infinispan/configuration/myContainer/myCache") Configuration configuration;
2. Inject the cache directly, rather than looking it up via the cache manager, e.g.
e.g. @Resource(lookup = "java:jboss/infinispan/cache/myContainer/myCache") Cache<String, Data> cache;