質問

私は、Documentumに新しいです。私は、Documentumのインスタンス(5.3)に接続する必要があるスタンドアロンのJavaアプリケーションを作成しています。どのように私は、インスタンスに接続しに行くか?

役に立ちましたか?

解決

あなたがインストールして設定する必要があります Documentumの基礎クラスの(のDocumentum API)クライアント・マシンで、あなたのクラスパス内の任意の場所で、最後にdfc.jarのコピー文書のトンを読む: - )

他のヒント

まず、あなたのdmcl.iniのファイルに次の行をconainなければなりません。

[DOCBROKER_PRIMARY]
host=<host address or ip of docbroker for your docbase>
port=<port # usually 1489>

次のコードは、あなたのために働く必要があります。

        String docbaseName = "docbase";
        String userName = "user";
        String password = "pass";
        IDfClientX clientx = new DfClientX();
        IDfClient client = clientx.getLocalClient();

        IDfSessionManager sMgr = client.newSessionManager();
        IDfLoginInfo loginInfoObj = clientx.getLoginInfo();
        loginInfoObj.setUser(userName);
        loginInfoObj.setPassword(password);
        loginInfoObj.setDomain(null);
        sMgr.setIdentity(docbaseName, loginInfoObj);
        IDfSession session = null;
        try
        {
            session = sMgr.getSession(docbaseName);
            // do stuff here
        }
        finally
        {
            if(session != null)
            {
                sMgr.release(session);
            }
        }
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top