Package com.ipc.oce

Examples of com.ipc.oce.OCApp.connect()


    // step 3 create OCApp instance and set driver
    OCApp app = OCApp.getNewInstance();
    app.setApplicationDriver(driver);
   
    try{
      app.connect(configuration);
      // do some useful things
      //...
      System.out.println("Computer name: "+app.getComputerName());
    }catch(Exception e){
     
View Full Code Here


    ApplicationDriver driver = ApplicationDriver
        .loadDriver((String) configuration
            .get(PropertiesReader.OCE_CFG_DRIVER));
    OCApp app = OCApp.getNewInstance();
    app.setApplicationDriver(driver);
    app.connect(configuration);
    return app;
  }

  public static void main(String[] args) throws IOException, ConfigurationException, JIException {
    OCApp app = getConnection();
View Full Code Here

    ApplicationDriver driver = ApplicationDriver
        .loadDriver((String) configuration
            .get(PropertiesReader.OCE_CFG_DRIVER));
    OCApp app = OCApp.getNewInstance();
    app.setApplicationDriver(driver);
    app.connect(configuration);
    return app;
  }

  public static void main(String[] args) throws IOException, ConfigurationException, JIException {
    OCApp app = getConnection();
View Full Code Here

    driver.setAutoRegistration(true);

    OCApp app = OCApp.getNewInstance();
    app.setApplicationDriver(driver);
    try {
      app.connect(configuration);
      System.out.println("Connected to " + app.getComputerName());
    } finally {
      app.exit();
    }
  }
View Full Code Here

    // magic is here
    OCApp app = OCApp.getNewInstance();
    app.setApplicationDriver(driver);
   
    try {
      app.connect(conProperties);
    } catch (SecurityException e) {
      throw new SQLException(e);
    } catch (JIException e) {
      throw new SQLException(e);
    } catch (IOException e) {
View Full Code Here

    }

    app.setApplicationDriver(driver);

    try {
      int sessionNum = app.connect(params);
      LOG.info("Session number: " + sessionNum);
    } catch (SecurityException e) {
      throw new SQLException("Connection failed. Parameters " + params
          + ". " + e);
    } catch (JIException e) {
View Full Code Here

    ApplicationDriver driver = ApplicationDriver.loadDriver(configuration
        .getProperty(PropertiesReader.OCE_CFG_DRIVER));

    OCApp app = OCApp.getNewInstance();
    app.setApplicationDriver(driver);
    int sessionCode = app.connect(configuration);
   
   
    return sessionCode;
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.