Sample Code for connecting to FileNet and get domain, Object Store :
* Anything written in <> is has to be replaced with original value
String cpeURl = "
:/****/>" Connection conn = Factory.Connection.getConnection(cpeURl); Subject subject = UserContext.createSubject(conn, username, password, ""); String domainName = cfg.getDomain(); Domain domain = Factory.Domain.fetchInstance(ceConnection, null, null); String objectStoreName = cfg.getObjStore(); ObjectStore objectStore = Factory.ObjectStore.fetchInstance(domain, objectStoreName, null);
No comments:
Post a Comment