ninada / full-hibernate-plugin-for-struts2

Automatically exported from code.google.com/p/full-hibernate-plugin-for-struts2
1 stars 0 forks source link

hibernate pooling is broken after using full-hibernate-plugin-for-struts2 #24

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Configure the C3P0 connection pool in Hibernate
2. Try to get some data from the database
3. Add hibernate-plugin, get some additional data from the database in new 
struts2 action. Try to get the data from the second point above.

What is the expected output? What do you see instead?
I expected to get the result from the database.
Hibernate pooling is closed. I got an error:
com.mchange.v2.c3p0.PoolBackedDataSource.....has been closed() -- you can no 
longer use it

What version of the product are you using? On what operating system?
struts2-fullhibernatecore-plugin-2.2.1-GA.

Please provide any additional information below.
I put the error on my blog http://javanus.com/blog/?p=233

Regards,
Javanus

Original issue reported on code.google.com by vito.mih...@gmail.com on 27 Sep 2010 at 7:29

GoogleCodeExporter commented 8 years ago
I can't really confirm the post above. But i experienced that the connection 
pool managed by c3p0 is growing with each database request. Why the "pool max 
size" is ignored at this point is confusing me. The result is to have such a 
lot of connections to mysql that mysql's connection limit is reached.

If i can help/investigate more, please let me know.

Original comment by daniel.rindt on 11 Nov 2010 at 9:47

GoogleCodeExporter commented 8 years ago
We experiment the same problem.

Original comment by reshad.m...@gmail.com on 10 Sep 2012 at 7:16