Package de.mhus.lib.cao

Examples of de.mhus.lib.cao.ConnectionException


      if (MString.isEmptyTrim(form.getWorkspace()))
        session = repo.login(new SimpleCredentials(form.getUser(), form.getPassword().toCharArray()));
      else
        session = repo.login(new SimpleCredentials(form.getUser(), form.getPassword().toCharArray()), form.getWorkspace());
    } catch (Throwable t) {
      throw new ConnectionException(t);
    }
   
//    applications.put(CaoDriver.APP_CONTENT, new JackApplication(this));
//    CapGuiDriver.createApplicationFor(config,applications);
  }
View Full Code Here


      resources = new Properties();
      String resName = "/" + getClass().getPackage().getName().replaceAll("\\.", "/") + "/dql.properties";
      resources.load(
          getClass().getResourceAsStream( resName ) );
    } catch (Exception e) {
      throw new ConnectionException(e);     
    }
   
    try {
      // connect
      client = DctmDriver.clientx.getLocalClient();
      sessionMgr = client.newSessionManager();
 
      // create an IDfLoginInfo object named loginInfoObj
      IDfLoginInfo loginInfoObj = DctmDriver.clientx.getLoginInfo();
      loginInfoObj.setUser(form.getUser());
      loginInfoObj.setPassword(form.getPassword());
      loginInfoObj.setDomain(form.getDomain());
 
      // bind the Session Manager to the login info
      sessionMgr.setIdentity(form.getDocbase(), loginInfoObj);
      session = sessionMgr.newSession(form.getDocbase());
    } catch (DfException e) {
      throw new ConnectionException(e);
    }
   
//    applications.put(CaoDriver.APP_CONTENT, new DctmApplication(this) );
//    CapGuiDriver.createApplicationFor(config,applications);
  }
View Full Code Here

    try {
      InputStream is = ((XmlConnection)getConnection()).getInputStream(file);
      element = MXml.loadXml(is).getDocumentElement();
      is.close();
    } catch (Exception e) {
      throw new ConnectionException(""+file,e);
    }
  }
View Full Code Here

TOP

Related Classes of de.mhus.lib.cao.ConnectionException

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.