126 lines
8.4 KiB
Plaintext
126 lines
8.4 KiB
Plaintext
|
<?xml version="1.0"?>
|
|||
|
<configuration>
|
|||
|
<configSections>
|
|||
|
<!--企业库配置源信息-->
|
|||
|
<section name="policyInjection" type="Microsoft.Practices.EnterpriseLibrary.PolicyInjection.Configuration.PolicyInjectionSettings, Microsoft.Practices.EnterpriseLibrary.PolicyInjection, Version=4.1.0.0, Culture=neutral, PublicKeyToken=null" />
|
|||
|
<section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=4.1.0.0, Culture=neutral, PublicKeyToken=null" />
|
|||
|
<section name="cachingConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Caching.Configuration.CacheManagerSettings, Microsoft.Practices.EnterpriseLibrary.Caching, Version=4.1.0.0, Culture=neutral, PublicKeyToken=null" />
|
|||
|
<section name="enterpriseLibrary.ConfigurationSource" type="Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ConfigurationSourceSection, Microsoft.Practices.EnterpriseLibrary.Common, Version=4.1.0.0, Culture=neutral, PublicKeyToken=null" />
|
|||
|
<!--企业库缓存配置区段处理程序-->
|
|||
|
<!--策略注入模块配置区段处理程序-->
|
|||
|
<!-- required to read the <dataCacheClient> element -->
|
|||
|
<section name="dataCacheClient" type="Microsoft.Data.Caching.DataCacheClientSection,CacheBaseLibrary" allowLocation="true" allowDefinition="Everywhere" />
|
|||
|
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
|
|||
|
<!-- KCacheSetting -->
|
|||
|
<section name="KCacheSetting" type="Kingdee.BOS.Cache.KCacheSetting, Kingdee.BOS" allowLocation="true" allowDefinition="Everywhere" />
|
|||
|
</configSections>
|
|||
|
<policyInjection>
|
|||
|
<policies>
|
|||
|
<add name="KCache">
|
|||
|
<matchingRules>
|
|||
|
<add match="Kingdee.BOS.App.Core" type="Microsoft.Practices.EnterpriseLibrary.PolicyInjection.MatchingRules.AssemblyMatchingRule, Microsoft.Practices.EnterpriseLibrary.PolicyInjection, Version=4.1.0.0, Culture=neutral, PublicKeyToken=null" name="Assembly Matching Rule" />
|
|||
|
</matchingRules>
|
|||
|
<handlers>
|
|||
|
<add cachePolicyName="Entity Policy" order="0" type="Kingdee.BOS.Cache.KCacheMethodCallHandler, Kingdee.BOS" name="Cache Handler" />
|
|||
|
<add perfeventtype="Kingdee.BOS.Performance.Publisher.RpcPerfEvent" order="2" type="Kingdee.BOS.Performance.Publisher.PerformanceCallHandler,Kingdee.BOS.Performance" name="perfevent" />
|
|||
|
<add perfeventtype="Kingdee.BOS.Performance.Publisher.WebUIPerfEvent" order="3" type="Kingdee.BOS.Performance.Publisher.PerformanceCallHandler,Kingdee.BOS.Performance" name="webuiperfevent" />
|
|||
|
<add perfeventtype="Kingdee.BOS.Performance.Publisher.RpcSqlTransaction" order="1" type="Kingdee.BOS.Performance.Publisher.PerformanceCallHandler,Kingdee.BOS.Performance" name="sqltrans" />
|
|||
|
</handlers>
|
|||
|
</add>
|
|||
|
<add name="SqlPolicy">
|
|||
|
<matchingRules>
|
|||
|
<!--
|
|||
|
<add match="Execute*" ignoreCase="false" type="Microsoft.Practices.EnterpriseLibrary.PolicyInjection.MatchingRules.MethodSignatureMatchingRule, Microsoft.Practices.EnterpriseLibrary.PolicyInjection, Version=4.1.0.0, Culture=neutral, PublicKeyToken=null"
|
|||
|
name="Method Signature Matching Rule" />
|
|||
|
-->
|
|||
|
<add match="Kingdee.BOS.App" type="Microsoft.Practices.EnterpriseLibrary.PolicyInjection.MatchingRules.AssemblyMatchingRule, Microsoft.Practices.EnterpriseLibrary.PolicyInjection, Version=4.1.0.0, Culture=neutral, PublicKeyToken=null" name="Assembly Matching Rule" />
|
|||
|
<add type="Microsoft.Practices.EnterpriseLibrary.PolicyInjection.MatchingRules.MemberNameMatchingRule, Microsoft.Practices.EnterpriseLibrary.PolicyInjection, Version=4.1.0.0, Culture=neutral, PublicKeyToken=null" name="Member Name Matching Rule">
|
|||
|
<matches>
|
|||
|
<add match="BulkInserts" ignoreCase="false" />
|
|||
|
<add match="Execute*" ignoreCase="false" />
|
|||
|
</matches>
|
|||
|
</add>
|
|||
|
</matchingRules>
|
|||
|
<handlers>
|
|||
|
<add perfeventtype="Kingdee.BOS.Performance.Publisher.RpcSqlEvent" order="2" type="Kingdee.BOS.Performance.Publisher.PerformanceCallHandler,Kingdee.BOS.Performance" name="rpcsqkperfevent" />
|
|||
|
</handlers>
|
|||
|
</add>
|
|||
|
</policies>
|
|||
|
</policyInjection>
|
|||
|
<cachingConfiguration defaultCacheManager="Default Cache Manager">
|
|||
|
<cacheManagers>
|
|||
|
<add expirationPollFrequencyInSeconds="60" maximumElementsInCacheBeforeScavenging="1000000" numberToRemoveWhenScavenging="10" backingStoreName="Null Storage" type="Microsoft.Practices.EnterpriseLibrary.Caching.CacheManager, Microsoft.Practices.EnterpriseLibrary.Caching, Version=4.1.0.0, Culture=neutral, PublicKeyToken=null" name="Default Cache Manager" />
|
|||
|
</cacheManagers>
|
|||
|
<backingStores>
|
|||
|
<add encryptionProviderName="" type="Microsoft.Practices.EnterpriseLibrary.Caching.BackingStoreImplementations.NullBackingStore, Microsoft.Practices.EnterpriseLibrary.Caching, Version=4.1.0.0, Culture=neutral, PublicKeyToken=null" name="Null Storage" />
|
|||
|
</backingStores>
|
|||
|
</cachingConfiguration>
|
|||
|
<enterpriseLibrary.ConfigurationSource selectedSource="System Configuration Source">
|
|||
|
<sources>
|
|||
|
<!-- <add name="Sql Configuration Source" type="Microsoft.Practices.EnterpriseLibrary.SqlConfigurationSource.SqlConfigurationSource, Microsoft.Practices.EnterpriseLibrary.SqlConfigurationSource, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null"
|
|||
|
connectionString="Data Source=192.168.18.112;Initial Catalog=acctctl;User ID=sa;Password=sa"
|
|||
|
getStoredProcedure="EntLib_GetConfig" setStoredProcedure="EntLib_SetConfig"
|
|||
|
refreshStoredProcedure="UpdateSectionDate" removeStoredProcedure="EntLib_RemoveSection" /> -->
|
|||
|
<add name="System Configuration Source" type="Microsoft.Practices.EnterpriseLibrary.Common.Configuration.SystemConfigurationSource, Microsoft.Practices.EnterpriseLibrary.Common, Version=4.1.0.0, Culture=neutral, PublicKeyToken=null" />
|
|||
|
</sources>
|
|||
|
</enterpriseLibrary.ConfigurationSource>
|
|||
|
<appSettings>
|
|||
|
<!--性能发布参数配置-->
|
|||
|
<!--应用部署路径-->
|
|||
|
<add key="AppDeploymentPath" value="" />
|
|||
|
<!--性能订阅开关-->
|
|||
|
<add key="PerfSuberscriberServerIsValid" value="false" />
|
|||
|
<!--最大性能事务缓存数-->
|
|||
|
<add key="PerfTransMaxLength" value="50" />
|
|||
|
<!--每个性能事务包含的最大性能事件数-->
|
|||
|
<add key="PerfEventMaxLength" value="50" />
|
|||
|
<!--当性能事务最大时,过期时间-->
|
|||
|
<add key="PerfTransTimeOut" value="00:00:05" />
|
|||
|
<add key="PerfPubServers" value="localhost" />
|
|||
|
<add key="PerfPubWebServers" value="localhost" />
|
|||
|
<!--事件中的stackTrace默认不输出,只在分析具体问题时动态打开-->
|
|||
|
<add key="PerfEventOutputStackTrace" value="false" />
|
|||
|
<add key="ComputeSiteUrl" value="http://localhost/K3CloudApp/" />
|
|||
|
</appSettings>
|
|||
|
<!-- Enterprise Lib -->
|
|||
|
<!-- Velocity simple client -->
|
|||
|
<dataCacheClient deployment="routing">
|
|||
|
<!-- (optional) specify local cache-->
|
|||
|
<!--<localCache isEnabled="true" sync="TTLBased" objectCount="1000000" ttlValue="30"/>-->
|
|||
|
<!-- note: cache notifications are not supported with simple client -->
|
|||
|
<!-- cache host(s) -->
|
|||
|
<hosts>
|
|||
|
<host name="192.168.18.112" cachePort="22233" cacheHostName="DistributedCacheService" />
|
|||
|
</hosts>
|
|||
|
</dataCacheClient>
|
|||
|
<runtime>
|
|||
|
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
|||
|
<dependentAssembly>
|
|||
|
<assemblyIdentity name="Oracle.DataAccess" publicKeyToken="89B483F429C47342" culture="neutral" />
|
|||
|
<bindingRedirect oldVersion="0.0.0.0-4.112.2.0" newVersion="4.112.2.0" />
|
|||
|
</dependentAssembly>
|
|||
|
</assemblyBinding>
|
|||
|
</runtime>
|
|||
|
<log4net>
|
|||
|
<appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender">
|
|||
|
<file value="..\App_Data\Log\" />
|
|||
|
<appendToFile value="true" />
|
|||
|
<rollingStyle value="Date" />
|
|||
|
<maxSizeRollBackups value="3" />
|
|||
|
<maximumFileSize value="10240KB" />
|
|||
|
<datePattern value="yyyy-MM-dd/'CloudMQ.log'" />
|
|||
|
<staticLogFileName value="false" />
|
|||
|
<layout type="log4net.Layout.PatternLayout">
|
|||
|
<conversionPattern value="%-5level %date [%-5.5thread] %-40.40logger - %message%newline" />
|
|||
|
</layout>
|
|||
|
<param name="lockingModel" type="log4net.Appender.FileAppender+MinimalLock" />
|
|||
|
</appender>
|
|||
|
<root>
|
|||
|
<appender-ref ref="RollingFileAppender" />
|
|||
|
<level value="ERROR" />
|
|||
|
</root>
|
|||
|
</log4net>
|
|||
|
<startup>
|
|||
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />
|
|||
|
</startup>
|
|||
|
</configuration>
|