[hibernate-dev] Release Connection provider resources
Dmitry Geraskov
dgeraskov at exadel.com
Thu Jun 2 01:15:55 EDT 2011
Thanks, Steve, this works.
(Unfortunately this didn't fix our tests, but anyway thanks)
Dmitry
01/06/2011 14:18, Steve Ebersole wrote:
> 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
>
>
More information about the hibernate-dev
mailing list