Details

    • Workaround Description:
      Hide

      As a workaround, you can specify the --runtime-name when adding the artifact to the deployment repository:

      [standalone@localhost:9990 /] deploy helloworld-rs-second.war --disabled --runtime-name=foo.war

      And then you can ignore the option when using replace-deployment command:

      [standalone@localhost:9990 /] :replace-deployment(name=helloworld-rs-second.war,to-replace=helloworld-rs.war)

      Show
      As a workaround, you can specify the --runtime-name when adding the artifact to the deployment repository: [standalone@localhost:9990 /] deploy helloworld-rs-second.war --disabled --runtime-name=foo.war And then you can ignore the option when using replace-deployment command: [standalone@localhost:9990 /] :replace-deployment(name=helloworld-rs-second.war,to-replace=helloworld-rs.war)

      Description

      The scenario is that, if you have a deployment to be switched by a new one, the runtime-name property doesn't work the way it should. See the sequence of the commands bellow:

      [standalone@localhost:9990 /] deploy helloworld-rs.war
      [standalone@localhost:9990 /] deploy helloworld-rs-second.war —disabled
      [standalone@localhost:9990 /] :replace-deployment(name=helloworld-rs-second.war,to-replace=helloworld-rs.war,runtime-name=foo.war)
      [standalone@localhost:9990 /] /deployment=helloworld-rs-second.war:read-resource
      {
      "outcome" => "success",
      "result" => {
      "content" => [{"hash" => bytes {
      0xfe, 0x24, 0x1f, 0xd3, 0x19, 0xa3, 0x72, 0xd4,
      0xc6, 0xa4, 0x48, 0xe7, 0x8b, 0x9c, 0xc1, 0xd4,
      0xc7, 0x17, 0xdf, 0xaa
      }}],
      "enabled" => false,
      "name" => "helloworld-rs-second.war",
      "owner" => undefined,
      "persistent" => true,
      "runtime-name" => "helloworld-rs-second.war",
      "subdeployment" => undefined,
      "subsystem" =>

      { "undertow" => undefined, "ejb3" => undefined, "logging" => undefined }

      }
      }

      Foo.war is not applied. Looks like it was ignored.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ehugonnet Emmanuel Hugonnet
                  Reporter:
                  ehugonnet Emmanuel Hugonnet
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: