Date: 2004-11-03T12:28:49
   Editor: BrianLee <[EMAIL PROTECTED]>
   Wiki: Jakarta-Slide Wiki
   Page: DomainConfig
   URL: http://wiki.apache.org/jakarta-slide/DomainConfig

   no comment

Change Log:

------------------------------------------------------------------------------
@@ -2,6 +2,10 @@
 == Domain.xml General Information ==
 Work in progress
 
+
+For more information:
+MultiStoreConfig - examples and information on configuring Domain.xml for multiple 
stores
+
 === Default Domain.xml (as found in 2.1b2 bundle) ===
 {{{
 <?xml version="1.0"?>
@@ -388,5 +392,94 @@
 </slide>
 }}} 
 
-=== Display ===
-xxx
+=== Definition ===
+From my understanding, the definition section sets where all the data concerning 
different parts of Slide will be stored.
+In the example all sub-stores (lock, content, etc...) are stored using 
"org.apache.slide.store.txfile.TxXMLFileDescriptorsStore", which
+essentially stores data in an XML formatted file.
+
+=== Default Example ===
+{{{
+<definition>
+            <store name="tx">
+                <parameter name="tlock-timeout">120</parameter>
+                <nodestore 
classname="org.apache.slide.store.txfile.TxXMLFileDescriptorsStore">
+                    <parameter name="rootpath">store/metadata</parameter>
+                    <parameter name="workpath">work/metadata</parameter>
+                    <parameter name="defer-saving">true</parameter>
+                    <parameter name="timeout">120</parameter>
+                </nodestore>
+                <sequencestore 
classname="org.apache.slide.store.txfile.FileSequenceStore">
+                    <parameter name="rootpath">store/sequence</parameter>
+                </sequencestore>
+                <securitystore>
+                    <reference store="nodestore"/>
+                </securitystore>
+                <lockstore>
+                    <reference store="nodestore"/>
+                </lockstore>
+                <revisiondescriptorsstore>
+                    <reference store="nodestore"/>
+                </revisiondescriptorsstore>
+                <revisiondescriptorstore>
+                    <reference store="nodestore"/>
+                </revisiondescriptorstore>
+                <contentstore 
classname="org.apache.slide.store.txfile.TxFileContentStore">
+                    <parameter name="rootpath">store/content</parameter>
+                    <parameter name="workpath">work/content</parameter>
+                    <parameter name="defer-saving">true</parameter>
+                    <parameter name="timeout">120</parameter>
+                </contentstore>
+                <!-- uncomment if you want to use the sample Indexer -->
+                <!-- be sure to have Lucene in your classpath             -->
+                <!--
+                <contentindexer 
classname="org.apache.slide.index.SampleTxtContainsIndexer">
+                <parameter name="indexpath">./index</parameter>
+                </contentindexer>
+        -->
+            </store>
+            <scope match="/" store="tx"/>
+        </definition>
+}}}
+
+=== Definition Using JDBC ===
+
+Ofcourse, for ease of maintenance most people will probably want to use a database to 
store most of the data related to Slide. In the example below,
+most sub-stores (except content) are using the JDBC configured nodestore. 
+
+=== JDBC Definition Example ===
+{{{
+<definition>
+            <store name="JDBCStore">
+               <nodestore classname="org.apache.slide.store.impl.rdbms.JDBCStore">
+                       <parameter 
name="adapter">org.apache.slide.store.impl.rdbms.PostgresRDBMSAdapter</parameter>
+                    <parameter name="driver">org.postgresql.Driver</parameter>
+                    <parameter 
name="url">jdbc:postgresql://19.26.54.86:5432/db_name</parameter>
+                    <parameter name="user">test</parameter>
+                    <parameter name="password">12345</parameter>
+                    <parameter name="dbcpPooling">true</parameter>
+                    <parameter name="maxPooledConnections">10</parameter>
+                    <parameter name="isolation">SERIALIZABLE</parameter>
+                    <parameter name="compress">false</parameter>
+                </nodestore>
+                <contentstore 
classname="org.apache.slide.store.txfile.TxFileContentStore">
+                    <parameter name="rootpath">store/assets</parameter>
+                    <parameter name="workpath">work/assets</parameter>
+                    <parameter name="defer-saving">true</parameter>
+                    <parameter name="timeout">120</parameter>
+                </contentstore>
+                <securitystore>
+                                <reference store="nodestore" />
+                </securitystore>
+                <lockstore>
+                       <reference store="nodestore" />
+                </lockstore>
+                <revisiondescriptorsstore>
+                       <reference store="nodestore" />
+                </revisiondescriptorsstore>
+                <revisiondescriptorstore>
+                       <reference store="nodestore" />
+                </revisiondescriptorstore>
+            </store>
+            <scope match="/" store="CansasStore"/>
+        </definition>
+}}}

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to