Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-926

DataSourceXMLDeployer chooses first server that matches runtime when several may match

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Critical Critical
    • 2.0.0.CR1
    • 2.0.0.Beta3
    • seam2
    • None
    • Documentation (Ref Guide, User Guide, etc.)

      It is possible that several servers may share a runtime, but have different command line arguments.
      The DataSourceXmlDeployer class uses the following code to decide which server to publish to:

      IServer[] servers = ServerCore.getServers();
      for (IServer server : servers) {
      String primaryName = primaryRuntime.getName();
      IRuntime runtime = server.getRuntime();
      if(runtime!=null) {
      String serverName = runtime.getName();
      if(primaryName.equals(serverName))

      { s = server; }

      }
      }

      This code will select the last server that matches the runtime. If several match, the last one is chosen.
      Perhaps it'd be better if the Seam Project page had a section where the user could select manually which server to deploy to if several match.

        1. screen-shot.jpg
          screen-shot.jpg
          54 kB
        2. screenshot-1.jpg
          screenshot-1.jpg
          85 kB
        3. screenshot-2.jpg
          screenshot-2.jpg
          62 kB

              vrubezhny Victor Rubezhny (Inactive)
              rob.stryker Rob Stryker (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 1 day
                  1d
                  Remaining:
                  Remaining Estimate - 1 day
                  1d
                  Logged:
                  Time Spent - Not Specified
                  Not Specified