[
https://jira.jboss.org/jira/browse/JBSEAM-3125?page=com.atlassian.jira.pl...
]
Michael Youngstrom resolved JBSEAM-3125.
----------------------------------------
Fix Version/s: 2.1.0.BETA1
Resolution: Done
patch committed thanks.
seam conversation and session.disconnect()
------------------------------------------
Key: JBSEAM-3125
URL:
https://jira.jboss.org/jira/browse/JBSEAM-3125
Project: Seam
Issue Type: Bug
Components: Spring
Environment: Seam 2.0.2.SP1
Spring 2.5.4
Reporter: Florian Keusch
Assignee: Michael Youngstrom
Fix For: 2.0.3.CR2, 2.1.0.BETA1
Attachments: SeamManagedSessionFactoryBean.java.patch
hi,
we use seam/spring/hibernate in our application. We detected a problem that database
connections are not released after each request during seam conversations. Then if we have
many conversations we can run out of connections.
Let me explain this issue a little bit more:
If a conversation starts a session is opened. This session is bound to the conversation
and borrows a database connection from the pool.
After the request the session doesn't have to be closed necessarily, but the session
should be disconnected (to release the connection).
What happens in the code (org.jboss.seam.ioc.spring.SeamManagedSessionFactoryBean) is
that the session only is 'marked' as closed.
Later seam recognizes that the conversation is still opened and the session will not be
closed at the end of the request. The connection is therefore
not returned to the pool for many requests until the conversation ends.
For our case we fixed this problem by slightly changing the code of
org.jboss.seam.ioc.spring.SeamManagedSessionFactoryBean (see the patch file). We added
code to disconnect the session
greetings fke
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira