cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From coli...@apache.org
Subject cvs commit: cocoon-2.1/src/blocks/petstore/java/org/apache/cocoon/components/flow/javascript Database.js
Date Thu, 21 Aug 2003 01:07:46 GMT
coliver     2003/08/20 18:07:46

  Modified:    src/blocks/petstore/java/org/apache/cocoon/components/flow/javascript
                        Database.js
  Log:
  Update to use FOM
  
  Revision  Changes    Path
  1.2       +3 -3      cocoon-2.1/src/blocks/petstore/java/org/apache/cocoon/components/flow/javascript/Database.js
  
  Index: Database.js
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/petstore/java/org/apache/cocoon/components/flow/javascript/Database.js,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Database.js	12 Jul 2003 19:09:39 -0000	1.1
  +++ Database.js	21 Aug 2003 01:07:46 -0000	1.2
  @@ -10,12 +10,12 @@
   defineClass("org.apache.cocoon.components.flow.javascript.ScriptableResult");
   
   Database.getConnection = function(selectorValue) {
  -    var selector = cocoon.componentManager.lookup(Packages.org.apache.avalon.excalibur.datasource.DataSourceComponent.ROLE
+ "Selector");
  +    var selector = cocoon.getComponent(Packages.org.apache.avalon.excalibur.datasource.DataSourceComponent.ROLE
+ "Selector");
       try {
   	var ds = selector.select(selectorValue);
   	return new Database(ds.getConnection());
       } finally {
  -	cocoon.componentManager.release(selector);
  +	cocoon.releaseComponent(selector);
       }
   }
   
  
  
  

Mime
View raw message