cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kelly" <jo_yan...@hotmail.com>
Subject Database.js
Date Mon, 16 Feb 2004 14:16:33 GMT
Hi Steven,
                  I am also trying to use woody and flow but would like to use my cocoon.xconf
datasource by setting up the connection:
cocoon.load("resource://org/apache/cocoon/components/flow/javascript/Database.js");

Registration.prototype.getConnection = function(id) {
	return Database.getConnection(id);
}

and:

var conn = this.getConnection(id);

I get a null pointer exception error.
I am also looking for a snippet of sample code
without the weight of the Petstore example to open a connection to cocoon.xconfig-defined
pool.
Thanks,
Kelly
Mime
View raw message