glassfish
  1. glassfish
  2. GLASSFISH-12570

Use copy-config command in create-cluster

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 3.1
    • Fix Version/s: 3.1_ms04
    • Component/s: admin
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      12,570

      Description

      We are currently not using copy-config command from create-cluster (to copy the
      default-config to cluster1-config and also creating the associated
      cluster1-config directory under glassfish/domains/domain1/config).

      For logging, we are introducing logging.properties file per config. So, every
      time we create a new config, we will need to do three things. For example,
      during cluster1-config creation:

      1) copy default-config to cluster1-config
      2) create cluster1-config dir under glassfish/domains/domain1/config
      3) create logging.properties file under
      glassfish/domains/domain1/config/cluster1-config/

      Since we are adding new things to copy-config, it would be best if
      create-cluster start delegating config creation to copy-config command. Logging
      will update copy-config command to create the logging.properties file from a
      template.

        Issue Links

          Activity

          Show
          Nazrul added a comment - See https://glassfish.dev.java.net/issues/show_bug.cgi?id=12572
          Hide
          Bhakti Mehta added a comment -

          Fixed this issue
          Sending
          admin/config-api/src/main/java/com/sun/enterprise/config/serverbeans/Cluster.java
          Adding
          admin/config-api/src/main/java/com/sun/enterprise/config/serverbeans/CopyConfig.java
          Sending
          cluster/admin/src/main/java/com/sun/enterprise/v3/admin/cluster/CopyConfigCommand.java
          Transmitting file data ...
          Committed revision 39170.

          Show
          Bhakti Mehta added a comment - Fixed this issue Sending admin/config-api/src/main/java/com/sun/enterprise/config/serverbeans/Cluster.java Adding admin/config-api/src/main/java/com/sun/enterprise/config/serverbeans/CopyConfig.java Sending cluster/admin/src/main/java/com/sun/enterprise/v3/admin/cluster/CopyConfigCommand.java Transmitting file data ... Committed revision 39170.

            People

            • Assignee:
              Bhakti Mehta
              Reporter:
              Nazrul
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: