[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-2387) bring back Session's method reconnect()
Dmitry (JIRA)
noreply at atlassian.com
Sat Jan 27 12:55:19 EST 2007
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2387?page=comments#action_25940 ]
Dmitry commented on HHH-2387:
-----------------------------
I've forgotten to mention that this method is useful only in case of ConnectionReleaseMode.ON_CLOSE.
> bring back Session's method reconnect()
> ---------------------------------------
>
> Key: HHH-2387
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2387
> Project: Hibernate3
> Type: Improvement
> Reporter: Dmitry
>
>
> Currently Session.reconnect() is deprecated as "manual reconnection is only needed in the case of application-supplied connections, in which case the reconnect(java.sql.Connection) for should be used".
> There are cases other than using application-supplied connections when this method seems to be useful.
> For example, with ZK framework (an Ajax-based presentation tier framework) it is possible to suspend a server thread until a modal window is closed by the end user. It would be nice to have a possibility not to close thread-bound Session during the thread suspension period - rather disconnect() it, reconnect()ing it subsequently after thread resumes. This would leave Session cache untouched during thread suspension.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list