public void deployConnector()

in src/main/java/org/apache/openejb/cts/deploy/StandardDeployment14.java [421:446]


  public void deployConnector(Properties p) throws TSDeploymentException {
    TestUtil.logHarness("StandardDeployment14.deployConnector()");
    String sRarFileName = p.getProperty("rar_file");
    DeploymentInfo info = null;
    try {
      info = new SunRIDeploymentInfo(sRarFileName, new String[] {});
      info.setProperty("deployment.props.number",
          p.getProperty("deployment.props.number"));
      deploy(info); // adds deployed targets IDs to htDeployedModules
      TargetModuleID[] targets = (TargetModuleID[]) (htDeployedModules
          .get(getAppName(sRarFileName)));
      dep2.createConnectionFactory(targets, p);
    } catch (Exception e) {
      e.printStackTrace();
      throw new TSDeploymentException("Error while deploying Connector");
    }

    // call into new porting package to create connection factories
    // If rar files now have runtime info, we will have to change the harness
    // code
    // to call deploy if we are using the StandardDeployment class. Our deploy
    // method in here can check for rars and handle the connection factory
    // logic.
    // If old porting impls are used, then the harness wil still call these
    // connector methods.
  }