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);
}