[wiki.minimark] push by - Edited wiki page through web user interface. on 2009-11-24 18:43 GMT

0 views
Skip to first unread message

mini...@googlecode.com

unread,
Nov 24, 2009, 1:44:41 PM11/24/09
to minimark...@googlegroups.com
Revision: 151859fc33
Author: lucio.benfante
Date: Tue Nov 24 10:43:37 2009
Log: Edited wiki page through web user interface.
http://code.google.com/p/minimark/source/detail?repo=wiki&r=151859fc33

Modified:
/HowToBuildAndInstall.wiki

=======================================
--- /HowToBuildAndInstall.wiki Tue Nov 24 10:27:38 2009
+++ /HowToBuildAndInstall.wiki Tue Nov 24 10:43:37 2009
@@ -37,11 +37,64 @@
= Checkout the Minimark source code =

{{{hg clone https://minimark.googlecode.com/hg/ minimark}}}
-
-If you don't have [http://mercurial.selenic.com Mercurial] ({{{hg}}})
already installed, you need to download and install it.

Then go to the root directory of the project:

{{{cd minimark/minimark}}}

-You'll recognize this root directory for the presence of a {{{build.xml}}}
file.
+You'll recognize this root directory for the presence of a {{{build.xml}}}
file. From now we'll call this directory {{{<MINIMARK_HOME>}}}.
+
+= Configure the database of your Minimark =
+
+Edit the Tomcat datasource in the
{{{<MINIMARK_HOME/src/main/webapp/META-INF/context.xml}}} file:
+
+{{{
+<?xml version="1.0" encoding="UTF-8"?>
+<Context path="/minimark" reloadable="true">
+ <Resource auth="Container"
+ maxActive="25"
+ name="jdbc/minimarkDS"
+ type="javax.sql.DataSource"
+ driverClassName="org.postgresql.Driver"
+ url="jdbc:postgresql://localhost:5432/minimark"
+ username="minimark"
+ password="your_password"/>
+</Context>
+}}}
+
+If your DBMS is not PostgreSQL, you'll also have to edit the
{{{<MINIMARK_HOME>/src/main/webapp/WEB-INF/database.xml}}}, changing the
Hibernate dialect conforming to your DBMS:
+
+{{{
+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns="http://www.springframework.org/schema/beans"
+ xmlns:parancoe="http://www.parancoe.org/schema/parancoe"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
+ http://www.parancoe.org/schema/parancoe
http://www.parancoe.org/schema/parancoe.xsd">
+
+ <bean id="dataSource"
class="org.springframework.jndi.JndiObjectFactoryBean">
+ <property name="jndiName" value="java:comp/env/jdbc/minimarkDS"/>
+ </bean>
+
+ <!-- PostegrSQL session factory -->
+ <bean id="sessionFactory" parent="abstractSessionFactory">
+ <property name="hibernateProperties">
+ <props merge="true">
+ <prop
key="hibernate.dialect">org.hibernate.dialect.PostgreSQLDialect</prop>
+ <prop key="hibernate.hbm2ddl.auto">update</prop>
+ <prop key="hibernate.show_sql">true</prop>
+ </props>
+ </property>
+ <property name="eventListeners">
+ <map>
+ <entry key="merge">
+ <bean
class="org.springframework.orm.hibernate3.support.IdTransferringMergeEventListener"/>
+ </entry>
+ </map>
+ </property>
+ </bean>
+
+</beans>
+}}}
+
+In production it's also appropriate to turn to {{{false}}} the
{{{hibernate.show_sql}}} property.

Reply all
Reply to author
Forward
0 new messages