Uploaded image for project: 'EJB 3.0'
  1. EJB 3.0
  2. EJBTHREE-2048

Determine how to specify an Infinispan CacheManager in an SFSB configuration

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • Major
    • None
    • None
    • cache, Clustering
    • None

    Description

      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) ???

      Attachments

        Issue Links

          Activity

            People

              pferraro@redhat.com Paul Ferraro
              bstansbe@redhat.com Brian Stansberry
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: