List Info

Thread: contentstore configuration question




contentstore configuration question
user name
2006-03-28 17:10:49
I'm trying to configure the a "store" in the
Domain.xml so that the contentstore can be pointed at the
file system and the securitystore, lockstore,
revisiondescriptorsstore, and revisiondescriptorstore can be
pointed at a database.  

As of now I have configured a JDB Connection Pool in Tomcat
by adding the following to server.xml:

        <!-- Set up the Oracle JDBC Connection Pool
-->
        <Context path="/slide"
docBase="slide" debug="5"
reloadable="true"
crossContext="true">
            <Resource 
                name="jdbc/slideDataSource" 
                auth="Container" 
                type="javax.sql.DataSource" 
               
driverClassName="oracle.jdbc.OracleDriver" 
                url="jdbc:oracle:thin:devlabor:1521:opusdev" 
                username="SLIDE" 
                password="SLIDE" 
                maxActive="20" 
                maxIdle="10" 
                maxWait="-1"/>
        </Context>

Then, in Slide's Domain.xml I have defined the following
for the "slide" namespace:

        <definition>
            <store name="j2ee">
                <nodestore
classname="org.apache.slide.store.impl.rdbms.J2EEStore
">
                    <parameter
name="datasource">jdbc/slideDataSource</pa
rameter>
                    <parameter
name="adapter">org.apache.slide.store.impl.rd
bms.OracleRDBMSAdapter</parameter>
                    <parameter
name="compress">false</parameter>
                </nodestore>
                <securitystore>
                    <reference
store="nodestore"/>
                </securitystore>
                <lockstore>
                    <reference
store="nodestore"/>
                </lockstore>
                <revisiondescriptorsstore>
                    <reference
store="nodestore"/>
                </revisiondescriptorsstore>
                <revisiondescriptorstore>
                    <reference
store="nodestore"/>
                </revisiondescriptorstore>
                <contentstore>
                    <reference
store="nodestore"/>
                </contentstore>
            </store>
            <scope match="/"
store="j2ee"/>
        </definition>
Could someone explain to me how to configure the
contentstore to use the file system instead of placing the
MIME encoded files in a CLOB in oracle.  

Thanks,

Bart Spedden
contentstore configuration question
user name
2006-03-28 17:23:44
Simple, just look at the default Domain.xml that comes in
the distribution
and you will see the 

<contentstore
classname="org.apache.slide.store.txfile.TxFileContent
Store">
...
</contentstore>

Use that instead of your 

<contentstore>
    <reference store="nodestore"/>
</contentstore>


                
Michael Oliver
CTO
Alarius Systems LLC
6800 E. Lake Mead Blvd, #1096
Las Vegas, NV 89156
Phone:(702)866-9034
Cell:(518)378-6154
Fax:(702)974-0341
 

-----Original Message-----
From: Bart Spedden [mailto:bartspeddenyahoo.com] 
Sent: Tuesday, March 28, 2006 9:11 AM
To: slide-userjakarta.apache.org
Subject: contentstore configuration question

I'm trying to configure the a "store" in the
Domain.xml so that the
contentstore can be pointed at the file system and the
securitystore,
lockstore, revisiondescriptorsstore, and
revisiondescriptorstore can be
pointed at a database.  

As of now I have configured a JDB Connection Pool in Tomcat
by adding the
following to server.xml:

        <!-- Set up the Oracle JDBC Connection Pool
-->
        <Context path="/slide"
docBase="slide" debug="5"
reloadable="true"
crossContext="true">
            <Resource 
                name="jdbc/slideDataSource" 
                auth="Container" 
                type="javax.sql.DataSource" 
               
driverClassName="oracle.jdbc.OracleDriver" 
                url="jdbc:oracle:thin:devlabor:1521:opusdev" 
                username="SLIDE" 
                password="SLIDE" 
                maxActive="20" 
                maxIdle="10" 
                maxWait="-1"/>
        </Context>

Then, in Slide's Domain.xml I have defined the following
for the "slide"
namespace:

        <definition>
            <store name="j2ee">
                <nodestore
classname="org.apache.slide.store.impl.rdbms.J2EEStore
">
                    <parameter
name="datasource">jdbc/slideDataSource</pa
rameter>
                    <parameter
name="adapter">org.apache.slide.store.impl.rd
bms.OracleRDBMSAdapter</paramet
er>
                    <parameter
name="compress">false</parameter>
                </nodestore>
                <securitystore>
                    <reference
store="nodestore"/>
                </securitystore>
                <lockstore>
                    <reference
store="nodestore"/>
                </lockstore>
                <revisiondescriptorsstore>
                    <reference
store="nodestore"/>
                </revisiondescriptorsstore>
                <revisiondescriptorstore>
                    <reference
store="nodestore"/>
                </revisiondescriptorstore>
                <contentstore>
                    <reference
store="nodestore"/>
                </contentstore>
            </store>
            <scope match="/"
store="j2ee"/>
        </definition>
Could someone explain to me how to configure the
contentstore to use the
file system instead of placing the MIME encoded files in a
CLOB in oracle.  

Thanks,

Bart Spedden


------------------------------------------------------------
---------
To unsubscribe, e-mail: slide-user-unsubscribejakarta.apache.org
For additional commands, e-mail: slide-user-helpjakarta.apache.org

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )