cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leszek Gawron <lgaw...@mobilebox.pl>
Subject Re: Cocoon Hangs with OpenSessionInViewFilter
Date Sat, 03 Sep 2005 11:22:12 GMT
Dustin N. Jenkins wrote:
> I'm using the default c3p0 pooling, so I think I'll try adding a 
> c3p0.properties to try and work it out a little bit.  My 
> cocoon-ehcache-1.* files both have a size of zero, but I deleted them 
> anyway with no good result.  I've never seen this before and I'm worried 
> it's the way my code is working.  I'm deleting a collection of entities, 
> then creating a new list of them.  I don't explicitly open sessions as 
> everything is taken care of via Spring and carried over to Cocoon with 
> the OpenSessionInViewFilter.
Just for "fun" try switching to DBCP and see if your error occurs. Here 
you have a configuration snippet.

<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" 
destroy-method="close">
	<property name="driverClassName">
		<value>${db.driver}</value>
	</property>
	<property name="url">
		<value>${db.url}</value>
	</property>
	<property name="username">
		<value>${db.username}</value>
	</property>
	<property name="password">
		<value>${db.password}</value>
	</property>
</bean>

-- 
Leszek Gawron                                      lgawron@mobilebox.pl
IT Manager                                         MobileBox sp. z o.o.
+48 (61) 855 06 67                              http://www.mobilebox.pl
mobile: +48 (501) 720 812                       fax: +48 (61) 853 29 65

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


Mime
View raw message