I use properties to configure my database connection.
In my block application context I have:
<bean id="myDataSource"
class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
<property name="driverClassName">
<value>${myDatabase.driverClassName}</value>
</property>
<property name="url">
<value>${myDatabase.url}</value>
</property>
<property name="username">
<value>${myDatabase.username}</value>
</property>
<property name="password">
<value>${myDatabase.password}</value>
</property>
</bean>
My properties are defined in cocoon/properties/application.properties
file in my application src/main/webapp/WEB-INF and in block
rcl.properties file for development environment:
myDatabase.driverClassName=com.mysql.jdbc.Driver
myDatabase.url=jdbc:mysql://localhost:3307/dbname?
useUnicode=true&characterEncoding=utf8&autoReconnect=true
myDatabase.username=dbuser
myDatabase.password=dbpassword
Barbara
On 25 Jun, 2008, at 9:44 am, Johannes Hoechstaedter wrote:
Hi,
I want to have some infomations about configuration of cocoon by
property files. The documentation on http://cocoon.apache.org/2.2/
core-modules/core/2.2/1261_1_1.html seems to be not up to date. Can
you please point out a place where I can find some updated
documentation?
Johannes
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]