documentum - alternative to dfc.properties -
we're connecting documentum server java progream (using dfc.jar) pull documents. in order connect server, requires create dfc.properties available in classpath. have 1 master properties file, want avoid having 1 more. instead, want set properties within other properties file , utilize them while connecting documentum server. find how utilize docbroker host , port java code, i.e. using idftypedobject.
idflogininfo logininfoobj = clientx.getlogininfo(); logininfoobj.setuser(user); logininfoobj.setpassword(pwd); idfclient client = new dfclient(); idftypedobject cfg = client.getclientconfig(); cfg.setstring("primary_host", "myhost"); cfg.setint("primary_port", myport); idfsession docbase_session = client.newsession(docbase, logininfoobj); like primary_host , primary_port beingness set in code, there way set through code, next properties dfc.properties? dfc.globalregistry.repository dfc.globalregistry.username dfc.globalregistry.password
despite fact need have connection info global registry don't need have details correct. of course of study unless want utilize bof (tbo/sbo) features.
in case, if don't need (bofs), leave dfc.properties in place dummy info global registry , go on utilize code dynamically setting docbroker connection details.
documentum documentum-dfs
No comments:
Post a Comment