rave-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mpie...@apache.org
Subject svn commit: r1205072 - /incubator/rave/site/trunk/content/rave/documentation/configure-database.mdtext
Date Tue, 22 Nov 2011 16:41:30 GMT
Author: mpierce
Date: Tue Nov 22 16:41:29 2011
New Revision: 1205072

URL: http://svn.apache.org/viewvc?rev=1205072&view=rev
Log:
(RAVE-351) Updating Rave default database configuration information.

Modified:
    incubator/rave/site/trunk/content/rave/documentation/configure-database.mdtext

Modified: incubator/rave/site/trunk/content/rave/documentation/configure-database.mdtext
URL: http://svn.apache.org/viewvc/incubator/rave/site/trunk/content/rave/documentation/configure-database.mdtext?rev=1205072&r1=1205071&r2=1205072&view=diff
==============================================================================
--- incubator/rave/site/trunk/content/rave/documentation/configure-database.mdtext (original)
+++ incubator/rave/site/trunk/content/rave/documentation/configure-database.mdtext Tue Nov
22 16:41:29 2011
@@ -17,7 +17,8 @@ Notice:    Licensed to the Apache Softwa
            under the License.
 
 ## Default setup
-In the default setup Rave uses an in memory [H2 database][1].
+In the default setup, Rave uses a file-based [H2 database][1]. Rave and Shindig run in the
same Tomcat server as
+separate web applications but share data, so we use H2's [Automatic Mixed Mode][2].
 
 ### Filling the default database
 All schemes are generated using JPA annotations. The H2 database is populated with low level
SQL queries using the DataSourcePopulator which is configured as Spring bean. These queries
are not guaranteed to work for a different database.
@@ -42,11 +43,11 @@ When the application is running, the H2 
         <constructor-arg value="-web,-webPort,11111"/>
     </bean>
 
-The default username is `sa`, password `local`.
-
-  - Portal database: [http://localhost:11111][2].  
-  - Shindig database: [http://localhost:22222][3].
-
+Both Rave and Shindig are accessible from the database: [http://localhost:11111][3].  The
default 
+username is `sa`, password is `local`, and JDBC URL is `jdbc:h2:file:///tmp/rave_db`.  You
can change the file location
+for both databases by editing Rave's top level pom.xml file. Change the property `rave.database.location`
to the desired
+value.
+ 
 ## Setup a different database
 
 First start with [extending Rave][4].
@@ -131,6 +132,6 @@ Rave Shindig:
   - The syntax for setting variables in SQL queries in PostgreSQL is different from the syntax
in H2 databases. Therefore the default data cannot be loaded using the initial_data.sql file.
 
   [1]: http://www.h2database.com/
-  [2]: http://localhost:11111
-  [3]: http://localhost:22222
+  [2]: http://www.h2database.com/html/features.html#auto_mixed_mode
+  [3]: http://localhost:11111
   [4]: rave-extensions.html
\ No newline at end of file



Mime
View raw message