Re: some words about property configuration

2008-06-25 Thread David Legg

Johannes,

until someone with real knowledge comes along I think the Cocoon 2.2 way 
of configuring a project is to use the Spring Configurator [1].  In 
particular you should look at the property handling page [2].


It looks scary to me ;-)

David Legg


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?
[1] 
http://cocoon.apache.org/subprojects/configuration/1.0/spring-configurator/1.0/1304_1_1.html
[2] 
http://cocoon.apache.org/subprojects/configuration/1.0/spring-configurator/1.0/1310_1_1.html


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: some words about property configuration

2008-06-25 Thread Barbara Slupik

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=trueamp;characterEncoding=utf8amp;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]



Re: some words about property configuration

2008-06-25 Thread Johannes Hoechstaedter

Nice. :) It works. Thank you.

Johannes

Barbara Slupik schrieb:

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=trueamp;characterEncoding=utf8amp;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]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]