2

使用 app.config 的示例代码:

ContextFactory contextFactory = ContextFactory.Instance;
IServiceContext serviceContext = contextFactory.NewContext();

app.config 部分我想在代码中设置,而不是让 API 直接读取它。

<Emc.Documentum>
    <FS>
      <ConfigObject type="Emc.Documentum.FS.Runtime.Impl.Configuration.ConfigObject, Emc.Documentum.FS.Runtime"
       defaultModuleName="core" registryProviderModuleName="core" requireSignedUcfJars="true">
        <ModuleInfo name="core" protocol="http" host="documentum.current.dev" port="9080" contextRoot="services"/>
        <ModuleInfo name="search" protocol="http" host="documentum.current.dev" port="9080" contextRoot="services"/>
        <ModuleInfo name="bpm" protocol="http" host="documentum.current.dev" port="9080" contextRoot="services"/>
        <ModuleInfo name="collaboration" protocol="http" host="documentum.current.dev" port="9080" contextRoot="services" />
      </ConfigObject>
    </FS>
</Emc.Documentum>
4

1 回答 1

-1

您可以在 Documentum 开发者社区中找到答案:

https://community.emc.com/search.jspa?peopleEnabled=true&userID=&containerType=14&container=2013&spotlight=false&q=emc.documentum.fs.runtime *

于 2012-02-16T17:25:50.780 回答