[jboss-jira] [JBoss JIRA] Commented: (HIBERNATE-55) No way to specify Connection Release Mode in HMBean
Sol Kindle (JIRA)
jira-events at lists.jboss.org
Fri Aug 31 17:06:13 EDT 2007
[ http://jira.jboss.com/jira/browse/HIBERNATE-55?page=comments#action_12374868 ]
Sol Kindle commented on HIBERNATE-55:
-------------------------------------
I just upgraded from hibernate 3.0.5 to 3.2.4.sp1 (included with JBoss 4.2.1) and now my application which has been running for two years is getting the "Closing a connection for you. Please close them yourself" log message and a STACKTRACE. I am also running hibernate as an MBean.
1) Is there a workaound for this issue?
2) Is it OK to just call hsession.close() at the end of the EJB method getting this warning? Or is this indicative of some other problem.
Thank you.
> No way to specify Connection Release Mode in HMBean
> ---------------------------------------------------
>
> Key: HIBERNATE-55
> URL: http://jira.jboss.com/jira/browse/HIBERNATE-55
> Project: Hibernate
> Issue Type: Feature Request
> Reporter: Mohammed Sadiq
> Assigned To: Steve Ebersole
>
> In my application I have employed an Hibernate MBean for session factory creation and binding it to JNDI and I've added a new overload for the SessionFactory.openSession(Interceptor, ConnectionReleaseMode) method to oveeride the default connection release mode.
>
> The default connection release mode for any Hibernate session created using the session factory deployed through a Hibernate MBean configuration is taken as "after_statement".
> It will be more helpful, if there exists an MBean attribute "ConnectionReleaseMode" which can thake the enumerated values from the org.hibernate.ConnectionReleaseMode.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list