[hibernate-dev] Release Connection provider resources
Steve Ebersole
steve at hibernate.org
Wed Jun 1 07:18:54 EDT 2011
On 06/01/2011 04:34 AM, Dmitry Geraskov wrote:
> You mean I can't close ConnectionProvider using alpha3?
Cast the proxy as org.hibernate.service.internal.ServiceProxy and use
its getTargetInstance() method.
https://github.com/hibernate/hibernate-core/blob/4.0.0.Alpha3/hibernate-core/src/main/java/org/hibernate/service/internal/ServiceProxy.java
> And I expected I could get any interface which actual wrapped object
> implements (actual connection provider instance in my case) by calling
> Wrappable#unwrap(),
> if I was mistaken what for this method?
Why do you think wrapping is the same as implementing?
> Where should I look in git, there are many sources?
No idea what you mean by "many sources".
https://github.com/hibernate/hibernate-core
--
Steve Ebersole <steve at hibernate.org>
http://hibernate.org
More information about the hibernate-dev
mailing list