glassfish
  1. glassfish
  2. GLASSFISH-11710

make --contextroot useful for EAR projects...

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Critical Critical
    • Resolution: Unresolved
    • Affects Version/s: V3
    • Fix Version/s: not determined
    • Component/s: deployment
    • Labels:
      None
    • Environment:

      Operating System: Solaris
      Platform: Sun

    • Issuezilla Id:
      11,710

      Description

      This RFE is based on a query that I found... http://stackoverflow.com/questions/2469284/deploy-
      multiple-instances-of-an-ear-representing-versions-to-glassfish

      It would be nice to make it easy to deploy multiple instances of the same ear file on single server.

      Right now, you have to edit the descriptors or deploymentplan to put the same ear on one instance of
      the server.

      It looks like we could do the following, though... pretty simply.

      assume I have an ear with a war file in it, mapped to /123

      We could use the --contextroot option of asadmin to construct a new CR by appending the option's
      argument WITH the CR specified in the application.xml

      So:

      asadmin deploy EarWith123War.ear
      results in the same old CR we would get today, "/123"

      asadmin deploy --contextroot /abc EarWith123War.ear
      results in a constructed CR /abc/123

      If the user needed to deploy another version of EarWith123War.ear, they could do

      asadmin deploy --contextroot /xyz EarWith123War.ear
      to get the constructed CR /xyz/123

        Activity

          People

          • Assignee:
            Hong Zhang
            Reporter:
            vince kraemer
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: