-
Task
-
Resolution: Done
-
Major
-
None
-
None
-
None
See JBAS-7838.
The AS's integration with JBC supports a single CacheManager with multiple name cache configurations. The EJB3 @CacheConfig annotation's "name" attribute is used to specify which cache configuration to use for caching.
Because of JBAS-7838, with Infinispan it's possible there will be multiple CacheManagers. That means
1) there needs to be a mechanism to find the correct one
2) it's theoretically possible the same cache configuration name will appear in two different CacheManager instances.
Using a single attribute on an annotation to express this doesn't map cleanly. We need to sort this so we can design how the AS will expose multiple cache managers.
Options:
A) Add another attribute to @CacheConfig. Not really clean, as this is a general purpose annotation, and this attribute would be "Infinispan-centric".
B) Just leave @CacheConfig as is, have the AS's Infinispan integration reject configurations that use the same cache configuration name in two different CacheManager instances, and have the CacheManagerLocator class in ha-server-api expose a method to find the CacheManager that exposes the config named in @CacheConfig.name.
C) ???
- blocks
-
JBAS-7839 Determine what mechanisms for accessing CacheManager's we'll support
- Closed