Uploaded image for project: 'ShrinkWrap Descriptors'
  1. ShrinkWrap Descriptors
  2. SHRINKDESC-14

Design a way to handle multiple 'linked' Descriptor files

    Details

    • Type: Feature Request
    • Status: Open (View Workflow)
    • Priority: Optional
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      When working with Archive Descriptors, doing a single web.xml is easy.
      But when we move over to the container specific descriptors where some of the info in the 'auto' generated web.xml
      will be needed to map something together in the jboss-web.xml.

      ie:
      web.xml -> resource-ref -> res-ref-name
      jboss-web.xml -> resource-ref -> res-ref-name + jndi-name

      The point being some of the info in web.xml is needed to create the jboss-web.xml.
      Is there a way to link/automate this descriptor creation, so that the user avoid having to 'manually' add them both places.

      ie:
      desc = new WebArchiveDescriptor(JbossWebDescriptor, GlassfishWebDescriptor);
      desc.addResourceRef(DataSource, Name, JndiName) {
      this.addResourceRef(DataSource, Name);
      JbossWebDescriptor.add(Name, JndiName);
      GlassfishWebDescriptor.add(Name, JndiName);
      }

      I do realize that JNDI names could be a bad example, since in the old versions they were all container specific and in the new version they are standardized and not needed, but I'm sure there are other usecases...

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                aslak Aslak Knutsen
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated: