Package com.ipc.oce

Examples of com.ipc.oce.ApplicationDriver


   
   
    Properties configuration = pr.getPropertiesForInstance("inst01");
   
    // [step 2] load application driver (or use you can use default)
    ApplicationDriver driver = ApplicationDriver
        .loadDriver((String) configuration
            .get(PropertiesReader.OCE_CFG_DRIVER));
   
    // step 3 create OCApp instance and set driver
    OCApp app = OCApp.getNewInstance();
View Full Code Here


  }
 
  private static OCApp getConnection() throws JIException, IOException, ConfigurationException{
    PropertiesReader pr = new PropertiesReader(new File("C:\\Developer\\Projects\\hel_default\\OCExportWeb\\WebContent\\WEB-INF\\oce.properties"));
    Properties configuration = pr.getPropertiesForInstance("inst01");
    ApplicationDriver driver = ApplicationDriver
        .loadDriver((String) configuration
            .get(PropertiesReader.OCE_CFG_DRIVER));
    OCApp app = OCApp.getNewInstance();
    app.setApplicationDriver(driver);
    app.connect(configuration);
View Full Code Here

  }
 
  private static OCApp getConnection() throws JIException, IOException, ConfigurationException{
    PropertiesReader pr = new PropertiesReader(new File("C:\\Developer\\Projects\\hel_default\\OCExportWeb\\WebContent\\WEB-INF\\oce.properties"));
    Properties configuration = pr.getPropertiesForInstance("buh");
    ApplicationDriver driver = ApplicationDriver
        .loadDriver((String) configuration
            .get(PropertiesReader.OCE_CFG_DRIVER));
    OCApp app = OCApp.getNewInstance();
    app.setApplicationDriver(driver);
    app.connect(configuration);
View Full Code Here

            "C:\\Developer\\Projects\\hel_default\\OCExportWeb\\WebContent\\WEB-INF\\oce.properties"));

    configuration = pr.getPropertiesForInstance("inst03");

    // [step 2] load application driver (or use you can use default)
    ApplicationDriver driver = ApplicationDriver
        .loadDriver((String) configuration
            .get(PropertiesReader.OCE_CFG_DRIVER));
    driver.setAutoRegistration(true);
    // step 3 create OCApp instance and set driver
    app = OCApp.getNewInstance();
    app.setApplicationDriver(driver);
    app.connect(configuration);
  }
View Full Code Here

            "C:\\Developer\\Projects\\hel_default\\OCExportWeb\\WebContent\\WEB-INF\\oce.properties"));

    configuration = pr.getPropertiesForInstance("buh");

    // [step 2] load application driver (or use you can use default)
    ApplicationDriver driver = ApplicationDriver
        .loadDriver((String) configuration
            .get(PropertiesReader.OCE_CFG_DRIVER));
    driver.setAutoRegistration(true);
    // step 3 create OCApp instance and set driver
    app = OCApp.getNewInstance();
    app.setApplicationDriver(driver);
    app.connect(configuration);
    System.out.println("InfoBaseConnectionNumber: " + app.getInfoBaseConnectionNumber());
View Full Code Here

        new File("C:\\Developer\\Projects\\hel_default\\OCExportWeb\\WebContent\\WEB-INF\\oce.properties"));

    configuration = pr.getPropertiesForInstance("buh");

    // [step 2] load application driver (or use you can use default)
    ApplicationDriver driver = ApplicationDriver
        .loadDriver((String) configuration
            .get(PropertiesReader.OCE_CFG_DRIVER));
    driver.setAutoRegistration(true);
    // step 3 create OCApp instance and set driver
    app = OCApp.getNewInstance();
    app.setApplicationDriver(driver);
    app.connect(configuration);
  }
View Full Code Here

    configuration.setProperty(OCE_CFG_HOST_PASSWORD, "dlheu0");
    configuration.setProperty(OCE_CFG_1CDB_PATH, "C:\\Developer\\Temp\\Empty");
    configuration.setProperty(OCE_CFG_1CDB_USER, "one");
    configuration.setProperty(OCE_CFG_1CDB_PASSWORD, "one");

    ApplicationDriver driver = ApplicationDriver
        .loadDriver((String) configuration
            .get(PropertiesReader.OCE_CFG_DRIVER));
    driver.setAutoRegistration(true);

    OCApp app = OCApp.getNewInstance();
    app.setApplicationDriver(driver);
    try {
      app.connect(configuration);
View Full Code Here

            "C:\\Developer\\Projects\\hel_default\\OCExportWeb\\WebContent\\WEB-INF\\oce.properties"));

    configuration = pr.getPropertiesForInstance("buh");

    // [step 2] load application driver (or use you can use default)
    ApplicationDriver driver = ApplicationDriver
        .loadDriver((String) configuration
            .get(PropertiesReader.OCE_CFG_DRIVER));
    driver.setAutoRegistration(true);
    // step 3 create OCApp instance and set driver
    app = OCApp.getNewInstance();
    app.setApplicationDriver(driver);
    app.connect(configuration);
  }
View Full Code Here

    conProperties.put("oce.host.password", getHostPassword());
    conProperties.put("oce.1c.dbpath", getDbPath());
    conProperties.put("oce.1c.user", paramString1);
    conProperties.put("oce.1c.password", paramString2);
   
    ApplicationDriver driver = null;
    if (conProperties != null
        && conProperties.get(PropertiesReader.OCE_CFG_DRIVER) != null) {
      driver = ApplicationDriver.loadDriver((String) conProperties
          .get(PropertiesReader.OCE_CFG_DRIVER));
    }
View Full Code Here

    if (params.get("password") != null) {
      params.put(PropertiesReader.OCE_CFG_1CDB_PASSWORD,
          params.get("password"));
    }

    ApplicationDriver driver = null;

    if (params != null
        && params.get(PropertiesReader.OCE_CFG_DRIVER) != null) {
      driver = ApplicationDriver.loadDriver((String) params
          .get(PropertiesReader.OCE_CFG_DRIVER));
      if (driver == null) {
        driver = new DefaultApplicationDriver();
      }
    }

    OCApp app = OCApp.getNewInstance();

    if (params.get("autoRegistration") != null) {
      Boolean autoReg = Boolean.valueOf(params
          .getProperty("autoRegistration"));
      driver.setAutoRegistration(autoReg);
    }

    app.setApplicationDriver(driver);

    try {
View Full Code Here

TOP

Related Classes of com.ipc.oce.ApplicationDriver

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.