Advertisement
Guest User

Untitled

a guest
Mar 20th, 2017
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 17.86 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <Configuration Version="7.1"
  3.         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4.         xsi:noNamespaceSchemaLocation="schemas/cd_storage_conf.xsd">
  5.     <Global>
  6.         <!--Optional:-->
  7.         <ObjectCache Enabled="true">
  8.             <!--Optional:-->
  9.             <Policy Type="LRU" Class="com.tridion.cache.LRUPolicy">
  10.                 <!--
  11.                     The maximum size of memory used by the cache. The string must consist a number
  12.                     followed by units: "k" or "kb" for kilobytes; "m" or "mb" for megabytes (case insensitive)
  13.                 -->
  14.                 <Param Name="MemSize" Value="64mb"/>
  15.             </Policy>
  16.            
  17.             <!--Optional:-->
  18.             <!-- The Features element specifies classes that add additional functionality to the cache. -->
  19.             <Features>
  20.                 <Feature Type="DependencyTracker" Class="com.tridion.cache.DependencyTracker"/>
  21.             </Features>
  22.             <!--Optional:-->           
  23.             <!--
  24.                     The optional RemoteSynchronization element specifies a remote Cache Channel Service.
  25.                     The remote Cache Channel Service is used to send messages between caches that are running
  26.                     on separate virtual machines. (For example, if the Broker and the Deployer run on separate
  27.                     virtual machines.)
  28.                     The Cache Channel Service must be running and listening on the configured host and port for
  29.                     remote synchronization to function.
  30.                     If this element is omitted, the cache does not use any inter-virtual machine cache communication.
  31.                     You must use the RemoteSynchronization element in conjunction with the Cache Channel service in
  32.                     order for objects to be updated or removed from the Broker's object cache when they are published
  33.                     or unpublished using the Deployer.
  34.             -->
  35.             <!-- RMI CacheChannel Connector example
  36.             -->
  37.              
  38.             <RemoteSynchronization Queuesize="4096" ServiceMonitorInterval="10000" FlushCacheDuringDisconnectInterval="20000">
  39.                 <Connector Class="com.tridion.cache.RMICacheChannelConnector" Host="127.0.0.1" Port="1099" />
  40.             </RemoteSynchronization>
  41.            
  42.             <!-- JMS CacheChannel Connector example
  43.  
  44.            <RemoteSynchronization Queuesize="128" ServiceMonitorInterval="10000" FlushCacheDuringDisconnectInterval="20000">
  45.                 <Connector Class="com.tridion.cache.JMSCacheChannelConnector" Topic="topicName" TopicConnectionFactory="jndiNameOfConnectionFactory"/>
  46.             </RemoteSynchronization>
  47.             -->
  48.         </ObjectCache>
  49.         <!--Optional:-->
  50.         <!-- The optional MetaQueryConstants section allows setting of some advanced properties.
  51.                FindByURLCaseSensitivity overrides the default behaviour of the findByURL methods
  52.                for retrieving BinaryMeta and PageMeta data.
  53.         <MetaQueryConstants>               
  54.             <FindByURLCaseSensitivity Value="false"/>
  55.             <CategoryQuerySeparator Value="/"/>
  56.         </MetaQueryConstants>
  57.              -->
  58.         <!--
  59.         Specify RMI listening port
  60.         -->
  61.         <!--
  62.         <RMIChannel ListenerPort="1050"/>
  63.         -->
  64.         <Storages>
  65.             <!--
  66.            Optional
  67.            Overriding default Tridion dao bundles.
  68.            
  69.            <StorageBindings>
  70.                <Bundle src="undo_dao_bundle.xml"/>
  71.                <Bundle src="ugc_dao_bundle.xml"/>
  72.                <Bundle src="myDAO.xml"/>
  73.                <Bundle src="mybindings.xml"/>
  74.            </StorageBindings>
  75.             -->
  76.            
  77.             <!--
  78.                 Optional:
  79.                 Wrappers enhances the behaviour of DAOs for specific use cases.
  80.            
  81.             <Wrappers>
  82.             -->
  83.                 <!--
  84.                 Optional:
  85.                 Wrapper definition for StorageLayer wrapping.
  86.                 This element has the following attributes:
  87.                    Name               The bean wrapper name.
  88.                 -->
  89.  
  90.                 <!--
  91.                 <Wrapper Name="WrapperName">
  92.                 </Wrapper>
  93.                -->
  94.                 <!--
  95.                 <Wrapper Name="UndoWrapper">
  96.                -->
  97.                   <!-- Cleanup of old undo data can be enabled or disabled; default is enabled. -->
  98.                   <!--<CleanupEnabled>true</CleanupEnabled>-->
  99.                   <!-- PrunePeriod means Amount of time before data becomes invalid, as in anything older than 7 days. Default value is 7 days
  100.                       PurgeInterval means Amount of time in between checking for old undo data. Default value is 24 hours -->
  101.                   <!--
  102.                   <PrunePeriod>7</PrunePeriod>
  103.                   <PurgeInterval>24h</PurgeInterval>
  104.                  -->
  105.                   <!--
  106.                   <Storage Type="persistence" Id="internalUndoDB" dialect="MSSQL" Class="com.tridion.storage.persistence.JPADAOFactory">
  107.                     <Pool Type="jdbc" Size="10" MonitorInterval="60" IdleTimeout="120" CheckoutTimeout="120"/>
  108.                     <DataSource Class="com.microsoft.sqlserver.jdbc.SQLServerDataSource">
  109.                       <Property Name="serverName" Value="SERVER_NAME"/>
  110.                       <Property Name="portNumber" Value="1433"/>
  111.                       <Property Name="databaseName" Value="DATABASE_NAME"/>
  112.                       <Property Name="user" Value="USER_NAME"/>
  113.                       <Property Name="password" Value="PASSWORD"/>
  114.                     </DataSource>
  115.                   </Storage>
  116.                 </Wrapper>
  117.             </Wrappers>-->
  118.  
  119.            
  120.             <!--
  121.                For Database elements of type sql, you can specify the pooling that
  122.                should be used with a Pool element. This pooling is independent of the selected database driver.
  123.                
  124.                This element has the following attributes:
  125.                    Type               The type should be either jdbc or tridion.
  126.                    Size               Maximum number of connections to open.
  127.                    MonitorInterval    Number of seconds between checks on the pool.
  128.                    IdleTimeout        Number of seconds a connection can be idle before it is closed.
  129.                    CheckoutTimeout    Number of seconds a connection can be checked out before it is returned to pool.
  130.            -->
  131.             <!--           
  132.                 Configuration example for MS SQL Server 2008 R2 SP1 & 2012 SP1, using the MSSQL JDBC driver.
  133.  
  134.                 The DataSource element specifies the class name of the DataSource to use and properties specific to the datasource.
  135.                 For the MSSQL JDBC driver the minimum set of properties to set are:
  136.                     serverName: name of the server that hosts the database
  137.                     portNumber: configuration of the port used for TCP/IP connections to the database. 1433 is the default port.
  138.                     databaseName: name of the database to access
  139.                     userName: username used to access the database
  140.                     password: password used to access the database
  141.             -->
  142.                
  143.             <!--
  144.                 Do not use for Intranet, Intranet has static content !!
  145.             -->
  146.             <!--           
  147.             <Storage Type="persistence" Id="defaultdb" dialect="MSSQL" Class="com.tridion.storage.persistence.JPADAOFactory">
  148.                 <Pool Type="jdbc" Size="10" MonitorInterval="60" IdleTimeout="120" CheckoutTimeout="120" />
  149.                 <DataSource Class="com.microsoft.sqlserver.jdbc.SQLServerDataSource">
  150.                     <Property Name="serverName" Value="servername" />
  151.                     <Property Name="portNumber" Value="1433" />
  152.                     <Property Name="databaseName" Value="Tridion_Broker_Live" />
  153.                     <Property Name="user" Value="User" />
  154.                     <Property Name="password" Value="password" />
  155.                 </DataSource>
  156.             </Storage>
  157.             -->
  158.            
  159.             <!--           
  160.                 Configuration example for DB2 Version 9.7
  161.  
  162.                 The DataSource element specifies the class name of the DataSource to use and properties specific to the datasource.
  163.                 For the DB2 Version 9.7 driver the minimum set of properties to set are:
  164.                     serverName: name of the server that hosts the database
  165.                     portNumber: configuration of the port used for TCP/IP connections to the database. 50000 is the default port.
  166.                     databaseName: name of the database to access
  167.                     userName: username used to access the database
  168.                     password: password used to access the database
  169.                     driverType: set to "4" to indicate a pure java driver so no client installations of the driver are required.
  170.                
  171.            
  172.             <Storage Type="persistence" Id="defaultdb1" dialect="DB2" Class="com.tridion.storage.persistence.JPADAOFactory">
  173.                 <Pool Type="jdbc" Size="10" MonitorInterval="60" IdleTimeout="120" CheckoutTimeout="120" />
  174.                 <DataSource Class="com.ibm.db2.jcc.DB2SimpleDataSource">
  175.                     <Property Name="serverName" Value="SERVER_NAME"/>
  176.                     <Property Name="portNumber" Value="50000"/>
  177.                     <Property Name="databaseName" Value="DATABASE_NAME"/>
  178.                     <Property Name="user" Value="USER_NAME"/>
  179.                     <Property Name="password" Value="PASSWORD"/>
  180.                     <Property Name="driverType" Value="4"/>
  181.                 </DataSource>
  182.             </Storage>
  183.             -->
  184.            
  185.             <!--           
  186.                 Configuration example for Oracle 10 and Oracle 11.
  187.  
  188.                 The DataSource element specifies the class name of the DataSource to use and properties specific to the datasource.
  189.                 For the Oracle 10 driver the minimum set of properties to set are:         
  190.                     driverType: set to value "thin". Indicates the type of driver to use, by using "thin" no oracle client installation is required.
  191.                     networkProtocol: "tcp". Indicates TCP/IP will be used for connectivity.
  192.                     serverName: name of the server that hosts the database
  193.                     portNumber: configuration of the port used for TCP/IP connections to the database. 1521 is the default port.
  194.                     databaseName: name of the database to access
  195.                     userName: username used to access the database
  196.                     password: password used to access the database             
  197.            
  198.             <Storage Type="persistence" Id="defaultdb2" dialect="ORACLESQL" Class="com.tridion.storage.persistence.JPADAOFactory">
  199.                 <Pool Type="jdbc" Size="10" MonitorInterval="60" IdleTimeout="120" CheckoutTimeout="120" />
  200.                 <DataSource Class="oracle.jdbc.pool.OracleDataSource">
  201.                     <Property Name="driverType" Value="thin"/>
  202.                     <Property Name="networkProtocol" Value="tcp"/>
  203.                     <Property Name="serverName" Value="SERVER_NAME"/>
  204.                     <Property Name="portNumber" Value="1521"/>
  205.                     <Property Name="databaseName" Value="DATABASE_NAME"/>
  206.                     <Property Name="user" Value="USER_NAME"/>
  207.                     <Property Name="password" Value="PASSWORD"/>
  208.                 </DataSource>
  209.             </Storage>
  210.             -->
  211.             <!--           
  212.                 Configuration example for using a old style compatible JDBC Driver datasources.
  213.            
  214.             <Storage Type="persistence" Class="com.tridion.storage.persistence.JPADAOFactory" dialect="MSSQL" Id="defaultdb3" Url="JDBC_URL_CONNECTION_STRING" Username="USERNAME" Password="PASSWORD" Driver="DRIVER_CLASS">
  215.                 <Pool Type="jdbc2" Size="10" MonitorInterval="60" IdleTimeout="120" CheckoutTimeout="120"/>
  216.             </Storage>
  217.             -->
  218.            
  219.             <!--           
  220.                 Configuration example for using an Oracle based JNDI datasource.
  221.            
  222.             <Storage Type="persistence" Class="com.tridion.storage.persistence.JPADAOFactory" dialect="ORACLESQL" Id="defaultdb4" JNDIName="java:comp/env/jdbc/DATA_SOURCE_NAME"/>
  223.             -->
  224.            
  225.             <!--           
  226.                 Configuration example for using a MS SQL based JNDI datasource.
  227.            
  228.             <Storage Type="persistence" Class="com.tridion.storage.persistence.JPADAOFactory" dialect="MSSQL" Id="defaultdb5" JNDIName="java:comp/env/jdbc/DATA_SOURCE_NAME"/>
  229.             -->
  230.            
  231.             <!--           
  232.                 Configuration example for using a DB2 based JNDI datasource.
  233.            
  234.             <Storage Type="persistence" Class="com.tridion.storage.persistence.JPADAOFactory" dialect="DB2" Id="defaultdb6" JNDIName="java:comp/env/jdbc/DATA_SOURCE_NAME"/>
  235.             -->
  236.                        
  237.             <!--           
  238.                 Configuration example for using filesystem as data storage.
  239.             -->
  240.             <Storage Type="filesystem" Class="com.tridion.storage.filesystem.FSDAOFactory" Id="defaultFile" defaultFilesystem="false">
  241.                 <Root Path="F:\Data\Sites\Intranet" />
  242.             </Storage>
  243.             <Storage Type="filesystem" Class="com.tridion.storage.filesystem.FSDAOFactory" Id="defaultDataFile" defaultFilesystem="true" defaultStorage="true">
  244.                 <Root Path="F:\Data\Sites\IntranetData" />
  245.             </Storage>
  246.            
  247.             <!--
  248.             Configuration Example for SearchFilter home used by the SearchFilter Query API
  249.  
  250.             <SearchFilter Name="SearchFilter" Class="com.tridion.broker.components.meta.OracleSearchFilterHome" defaultStorageId="defaultdb2"/>
  251.             -->
  252.             <!--
  253.             <SearchFilter Name="SearchFilter" Class="com.tridion.broker.components.meta.DB2SearchFilterHome" defaultStorageId="defaultdb1"/>
  254.             -->
  255.             <!--
  256.             <SearchFilter Name="SearchFilter" Class="com.tridion.broker.components.meta.MsSqlSearchFilterHome" defaultStorageId="defaultdb"/>
  257.             -->
  258.         </Storages>
  259.         <!-- This configures the taxonomy reference count for keywords, if CountEnabled is
  260.         set to False the reference count for keywords will not get updated. The default setting is keyword counts are enabled. -->
  261.         <!--<Taxonomies CountEnabled="false"/>-->
  262.        
  263.         <!-- Configures transaction storage settings, how long before a transaction gets rolledback and on which interval to monitor for
  264.         outstanding transactions. Default timeout is 120000 ms. (2 minutes) and Default interval is 5000ms. (5 seconds) -->
  265.         <!-- <Transaction Timeout="120000" MonitorInterval="5000"/> -->
  266.     </Global>
  267.     <!-- If no item type mappings are defined within ItemTypes or if storages on a lower level do not exist then the storage defined by defaultStorageId attribute will be used.
  268.          If storage defined by defaultStorageId does not exist then exception will be thrown. -->
  269.     <ItemTypes defaultStorageId="defaultDataFile" cached="true">
  270.         <!-- Query type mapping is replacement for Query gnenerator. If there was query generator defined in a Broker configuration then  Query type mapping should be binded to default DB. -->
  271.         <!--
  272.         <Item typeMapping="Query" storageId="defaultdb"/>
  273.         -->
  274.         <!--Optional:-->
  275.         <!-- If the item type mapping is defined and storage defined by storageId is the existing one then that one will be used.
  276.              If storage defined by storageId does not exist then default storage defined by ItemTypes element will be used. -->
  277.         <!--
  278.         <Item typeMapping="Binary" itemExtension=".pdf" storageId="defaultFile" cached="true"/>
  279.         <Item typeMapping="Binary" itemExtension=".iso" storageId="defaultFile" cached="false"/>
  280.        <Item typeMapping="ComponentLinkClick" cached="true" storageId="defaultFile"/>
  281.         <Item typeMapping="Metadata" cached="true" storageId="defaultFile"/>
  282.        <Item typeMapping="ComponentVisit" cached="true" storageId="defaultFile"/>
  283.        <Item typeMapping="DynamicLinkInfo" cached="true" storageId="defaultFile"/>
  284.        -->
  285.         <!--
  286.               Required for Intranet (no BrokerDB) and enable caching
  287.         -->
  288.         <Item typeMapping="Page" cached="true" storageId="defaultFile"/>
  289.         <Item typeMapping="Binary" cached="true" storageId="defaultFile"/>
  290.         <!--
  291.         <Item typeMapping="Personalization" cached="true" storageId="defaultdb"/>
  292.         <Item typeMapping="Taxonomy" cached="true" storageId="defaultdb"/>
  293.         <Item typeMapping="Timeframe" cached="true" storageId="defaultFile"/>
  294.         <Item typeMapping="TrackedPage" cached="true" storageId="defaultFile"/>
  295.         <Item typeMapping="XSLT" cached="true" storageId="defaultFile"/>
  296.         <Item typeMapping="ExtensionData" cached="true" storageId="defaultdb"/>
  297.         -->
  298.         <!-- UGC -->
  299.         <!--
  300.        <Item typeMapping="Comment" storageId="ugcdb"/>
  301.        <Item typeMapping="Rating" storageId="ugcdb"/>
  302.        <Item typeMapping="UGCUser" storageId="ugcdb"/>
  303.        <Item typeMapping="UGCItemStats" storageId="ugcdb"/>
  304.         -->
  305.        
  306.         <!--Optional:-->
  307.         <!-- If the publication is defined and storage defined by defaultStorageId is the existing one then that one will be used for that publication unless it is overwriten on a lower level.
  308.              If storage defined by storageId does not exist then default storage defined by ItemTypes element will be used unless lower level type mappings are not matched. -->
  309.         <!--
  310.         <Publication Id="1" defaultStorageId="defaultFile" cached="false">
  311.         -->
  312.             <!--Optional:-->
  313.             <!-- If there is a type mapping match and storage is defined for storageId then that storage will be used.
  314.                  Otherwise; first storage defined within publication element will be referenced, and if that one does not exist then the storage from Item elements will be referenced.
  315.                  and at the end storage defined within ItemTypes will be used.-->
  316.             <!--
  317.             <Item typeMapping="ComponentPresentation" itemExtension=".Jsp" storageId="defaultFile"/>
  318.             <Item typeMapping="ComponentPresentation" itemExtension=".Asp" storageId="defaultFile"/>
  319.             <Item typeMapping="ComponentPresentation" itemExtension=".Xml" storageId="defaultFile"/>
  320.             <Item typeMapping="ComponentPresentation" itemExtension=".Txt" storageId="defaultFile"/>
  321.             <Item typeMapping="Metadata" cached="true" storageId="defaultFile"/>
  322.            <Item typeMapping="Binary" itemExtension=".pdf" storageId="defaultFile" cached="true"/>
  323.            <Item typeMapping="Binary" itemExtension=".iso" storageId="defaultFile" cached="false"/>
  324.            <Item typeMapping="ComponentLinkClick" cached="true" storageId="defaultFile"/>
  325.            <Item typeMapping="ComponentVisit" cached="true" storageId="defaultFile"/>
  326.            <Item typeMapping="DynamicLinkInfo" cached="true" storageId="defaultFile"/>
  327.             <Item typeMapping="Page" cached="true" storageId="defaultFile"/>
  328.            <Item typeMapping="Personalization" cached="true" storageId="defaultdb"/>
  329.            <Item typeMapping="Taxonomy" cached="true" storageId="defaultdb"/>
  330.            <Item typeMapping="Timeframe" cached="true" storageId="defaultFile"/>
  331.            <Item typeMapping="TrackedPage" cached="true" storageId="defaultFile"/>
  332.            <Item typeMapping="XSLT" cached="true" storageId="defaultFile"/>
  333.            <Item typeMapping="ExtensionData" cached="true" storageId="defaultdb"/>
  334.            -->
  335.             <!-- UGC -->
  336.             <!--
  337.            <Item typeMapping="Comment" storageId="ugcdb"/>
  338.            <Item typeMapping="Rating" storageId="ugcdb"/>
  339.            <Item typeMapping="UGCUser" storageId="ugcdb"/>
  340.            <Item typeMapping="UGCItemStats" storageId="ugcdb"/>
  341.             -->        
  342.         <!--
  343.        </Publication>
  344.         -->
  345.     </ItemTypes>
  346.    
  347.     <!-- Specifies the location of the license file. -->
  348.     <!--
  349.    <License Location="c:/Tridion/config/cd_licenses.xml"/>
  350.    -->
  351. </Configuration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement