cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Santiago Gala <sg...@hisitech.com>
Subject Re: Problems with SQL samples
Date Tue, 01 May 2001 19:15:51 GMT
Ignacio J. Ortega wrote:

> Hola a todos:
> 

Hi, Nacho


> I'm following very closely latest developments in Cocoon2, and i'm
> ranging from excited to amazed..seeing all the advances committers are
> doing ...is refreshing and enjoying to see all of you doing that
> excelent and beautifull work on CoCoon2, many thanks.
> 
> Well.. some comments about SQL samples..
> 
> I've noticed that the URL for the JDBC connection to the demo database (
> HSQL) is composed doing some ant filtering .. so it's not possible to
> deploy a cocoon webapp enterely independent of underliying
> infrastructure,  having HSQL included on the webapp, that should be
> possible doing a simple GetRealPath..I understand that is not that
> easy..but is that hard to have a deployable independent cocoon demo
> webapp ? 
> 

This are the diffs to my database.properties in the base distribution 
directory. Not meant as a patch, but to show how to change the default 
database setup. After doing this (and dragging the needed jars to the 
lib directory), a webapp will contain the right database references.

Cool, isn't it?

Index: database.properties
===================================================================
RCS file: /home/cvspublic/xml-cocoon/Attic/database.properties,v
retrieving revision 1.1.2.2
diff -u -r1.1.2.2 database.properties
--- database.properties 2001/04/09 15:41:28     1.1.2.2
+++ database.properties 2001/05/01 19:11:09
@@ -1,11 +1,15 @@
  # Specify the Driver Class.
-database-driver=org.hsqldb.jdbcDriver
+#database-driver=org.hsqldb.jdbcDriver
+database-driver=org.postgresql.Driver

  # Specify the URL for the Database
-database-url=jdbc:hsqldb:${install.war}/cocoon/WEB-INF/db/cocoondb
+#database-url=jdbc:hsqldb:${install.war}/cocoon/WEB-INF/db/cocoondb
+database-url=jdbc:postgresql://localhost/prueba

  # Specify the user id
-database-user=sa
+#database-user=sa
+database-user=prueba

  # Specify the password
-database-password=
+#database-password=
+database-password=prueba 



> FYI coocon2 on tomcat 3.3 fly and the installation is matter of put the
> war on the webapps dir..and startup..
> 
> TIA
> 
> Saludos ,
> Ignacio J. Ortega
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message