如何在没有 ModuleInfo 标记的 app.config 的情况下使用 C# 通过 Emc.Documentum.FS.Runtime 连接到 Documentum?
使用 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>
Sample code using the app.config:
ContextFactory contextFactory = ContextFactory.Instance;
IServiceContext serviceContext = contextFactory.NewContext();
app.config section I'd like to set in code instead of having the API read it directly.
<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>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以在 Documentum 开发人员社区中找到答案:
https://community.emc.com/search.jspa?peopleEnabled=true&userID=&containerType=14&container=2013&spotlight=false&q=emc.documentum.fs.runtime< /a>*
You may find your answer in the Documentum Developer Community:
https://community.emc.com/search.jspa?peopleEnabled=true&userID=&containerType=14&container=2013&spotlight=false&q=emc.documentum.fs.runtime*