protected void initDeployTestUtils()

in src/main/java/org/apache/openejb/cts/deploy/StandardDeployment14.java [473:517]


  protected void initDeployTestUtils(String sPropNum)
      throws TSDeploymentException {
    try {
      if (dtu != null) {
        return;
      }
      String sJar = propMgr.getProperty("deployManagerJarFile." + sPropNum);
      String sUri = propMgr.getProperty("deployManageruri." + sPropNum);
      String sUname = propMgr.getProperty("deployManageruname." + sPropNum);
      String sPassword = propMgr.getProperty("deployManagerpasswd." + sPropNum);

      TestUtil.logHarnessDebug(
          "StandardDeployment14.initDeployTestUtils() + sPropNum = "
              + sPropNum);
      TestUtil.logHarnessDebug("deployManagerJarFile:  " + sJar);
      TestUtil.logHarnessDebug("deployManageruri:  " + sUri);
      TestUtil.logHarnessDebug("deployManageruname:  " + sUname);
      TestUtil.logHarnessDebug("deployManagerpasswd:  " + sPassword);

      // Construct properties object for DM
      dmProps = new DMProps(sJar, sUri, sUname, sPassword);

      // Utility object for getting depMgr's
      // dtu = DeployTestUtil.getDeployTestUtil(dmProps);
      dtu = new DeployTestUtil(dmProps);

    } catch (Exception e) {
      e.printStackTrace();
      throw new TSDeploymentException(
          "Failed to get DeployTestUtil: " + e.getMessage());
    }

    // Construct the DM
    // always initialize these in case props change in same VM of JavaTest
    try {
      depMgr = dtu.getDeploymentManager();

    } catch (Exception e) {
      e.printStackTrace();
      TestUtil.logHarness(
          "Exception loading DeploymentFactoryManager factories: " + e);
      throw new TSDeploymentException(
          "Unable to get DeploymentManager: " + e.getMessage());
    }
  }