2012-02-16 4 views
2

サンプルコード:私が好きな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> 

答えて

0

あなたは、Documentumの開発者コミュニティであなたの答えを見つけることがあります。

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

+0

は、私は手動で私たちが必要なものを設定するために私たちを有効にする必要があり、この上の記事を見つけることができた、ありがとうAppConfigシングルトンクラスのプロパティを編集します。 https://community.emc.com/message/454938#454938 –