|
Key
This line was removed.
This word was removed. This word was added.
This line was added.
|
Changes (90)
View Page History...
\##Globals Informations
jdbc.hibernate.hbm2ddl.auto = update
jdbc.hibernate.show_sql = false
##C3PO datasource Configuration
c3po.acquireIncrement = 1
c3po.minPoolSize = 5
c3po.maxPoolSize = 100
c3po.acquireRetryAttempts = 10
c3po.maxIdleTime = 50
c3po.idleConnectionTestPeriod = 30
## In File (mixed mode) H2 Datasource
jdbc.driverClassName = org.h2.Driver
jdbc.url = jdbc:h2:~/test/db/petalsviewTest;AUTO_SERVER=TRUE
jdbc.username = sa
jdbc.password = sa
jdbc.hibernate.dialect = org.hibernate.dialect.H2Dialect
## MySQL Datasource
#jdbc.driverClassName = com.mysql.jdbc.Driver
#jdbc.url = jdbc:mysql://localhost:3306/petalsview
#jdbc.username = view
#jdbc.password = view
#jdbc.hibernate.dialect = com.ebmwebsourcing.petalsview.persistence.util.MySqlInnoDBDialect
## PostGreSQL Datasource
#jdbc.driverClassName = org.postgresql.Driver
#jdbc.url = jdbc:postgresql://localhost:5432/petalsview
#jdbc.username = view
#jdbc.password = view
#jdbc.hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect
{code}
{multi-excerpt:name=Configuring Petals View}
h1. Stage 2: Configuring Petals View
...
{code}
<petals-se-kpi:hibernateURL xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<petals-se-kpi:hibernateURL xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jbi="http://java.sun.com/xml/ns/jbi" xmlns:petals-se-kpi="http://petals.ow2.org/components
/petals-se-kpi/version-1.0-SNAPSHOT" xmlns:kpi-config="http://petals.ow2.org/components/petals\-
se-kpi/specific" xmlns:petalsCDK="http://petals.ow2.org/components/extensions/version-x">[file:///yourPath/petals-view.properties]
</petals-se-kpi:hibernateURL>
{code}
...
{code:lang=xml}
<Context>
<Context>
<!--
#################################
#################################
...
<!-- ###################### H2 DataSource configuration example-->
<Resource name="jdbc/PetalsViewDataSource"
auth="Container"
factory="org.apache.naming.factory.BeanFactory"
type="com.mchange.v2.c3p0.ComboPooledDataSource"
driverClass="org.h2.Driver"
jdbcUrl="jdbc:h2:~/test/db/petalsview;AUTO_SERVER=TRUE"
user="sa"
password="sa"
maxPoolSize="10"
minPoolSize="2"
acquireIncrement="2" />
<!-- ###################### MySQL DataSource configuration example-->
<!-- ###################### MySQL DataSource configuration example-->
<!--
<Resource name="jdbc/PetalsViewDataSource"
auth="Container"
factory="org.apache.naming.factory.BeanFactory"
type="com.mchange.v2.c3p0.ComboPooledDataSource"
driverClass="com.mysql.jdbc.Driver"
jdbcUrl="jdbc:mysql://<yourhost>:3306/<yourdatabse>"
user="<youruser>"
password="<userpass>"
maxPoolSize="10"
minPoolSize="2"
acquireIncrement="2" />
-->
<!-- ###################### PostgreSQL DataSource configuration example-->
<!--
<Resource name="jdbc/PetalsViewDataSource"
auth="Container"
factory="org.apache.naming.factory.BeanFactory"
type="com.mchange.v2.c3p0.ComboPooledDataSource"
driverClass="org.postgresql.Driver"
jdbcUrl="jdbc:postgresql://<your host>:5432/<your database>"
user="<your user>"
password="<password>"
maxPoolSize="10"
minPoolSize="2"
acquireIncrement="2" />
-->
<!-- ###################### Oracle DataSource configuration example -->
<!-- ###################### Oracle DataSource configuration example -->
<!--
<Resource name="jdbc/PetalsViewDataSource"
auth="Container"
factory="org.apache.naming.factory.BeanFactory"
type="com.mchange.v2.c3p0.ComboPooledDataSource"
driverClass="oracle.jdbc.driver.OracleDriver"
jdbcUrl="jdbc:oracle:thin:@<your host>:1521:<your database>"
user="<your user>"
password="<password>"
maxPoolSize="10"
minPoolSize="2"
acquireIncrement="2" />
-->
</Context>
{code}
...
{multi-excerpt:name=Configuring the Referential in Petals View}
h1. *Stage 5: Configuring the Referential in Petals View*
...