Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-3488

Make default-cache attribute of cache-container not required.

    XMLWordPrintable

Details

    • Low

    Description

      Can we remove the restriction that default-cache must be set when you create the cache-container? That way, I can just make it so the UI
      forces them to set that value before calling the start operation. So under that covers, the console does this:

      <!-- user creates a new cache container without specifying default-cache. -->
      /subsystem=infinispan/cache-container=X:add
      
      <!-- for top-level cache container attributes, user sets them via write-attribute -->
      /subsystem=infinispan/cache-container=X:write-attribute(name=jndi-name,value=W)
      
      <!-- for nested nested cache-container attributes, user access them as an addressable resource and sets them via write-attribute -->
      /subsystem=infinispan/cache-container=X/transport=TRANSPORT:write-attribute(name=stack, value=udp)
      /subsystem=infinispan/cache-container=X/transport=TRANSPORT:write-attribute(name=lock-timeout, value=100)
      
      <!-- When user is ready to start the cache-container, prompt for default-cache if not set. -->
      <!-- Then do these two as a batch -->
      /subsystem=infinispan/cache-container=X:write-attribute(name=default-cache, value=Y)
      /subsystem=infinispan/cache-container=X:start(mode=on-demand)
      

      Any thoughts on this? The answer has great implications on the UI design.

      Attachments

        Issue Links

          Activity

            People

              rachmato@redhat.com Richard Achmatowicz
              rachmato@redhat.com Richard Achmatowicz
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: