cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From george georgovassilis <geor...@open.gr>
Subject DatabaseReader + ImageReader --> leak db connections?
Date Thu, 09 Dec 2004 12:52:30 GMT
Dear All

When using the ImageReader to scale an image retrieved by the 
DatabaseReader in the same pipeline then up to N requests are serviced 
(where N is the database connection pool size) before the request hangs. 
The DatabaseReader alone however does fine.

I have verified that the connection pool cannot provide any further 
connections after this. Any ideas?
G.

------ sitemap used ----------

...
<map:readers default="resource">
 <map:reader name="databasereader"
                logger="sitemap.reader.databasereader"
                src="org.apache.cocoon.reading.DatabaseReader">
 <use-connection>mypool</use-connection>
 </map:reader>
</map:readers>
...
<map:match pattern="resource/*">
 <map:read type="databasereader" src="{1}">
  <map:parameter name="table" value="IMAGES"/>
  <map:parameter name="image" value="CONTENTt"/>
  <map:parameter name="key" value="ID"/>
  <map:parameter name="content-type" value="mimetype"/>
 </map:read>
</map:match>

<map:match pattern="preview/*">
 <map:read type="image" src="cocoon:/resource/{1}" mime-type="image/jpeg">
  <map:parameter name="width" value="50"/>
  <map:parameter name="height" value="50"/>
 </map:read>
</map:match>





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


Mime
View raw message