开发者

Java Hibernate Oracle sessions never get closed

开发者 https://www.devze.com 2023-02-11 10:23 出处:网络
I\'m opening some Oracle sessions from 开发者_如何学Ca java-hibernate app. When I shutdown my java-hibernate application, the oracle sessions remain opened, even if the java process is not seen as run

I'm opening some Oracle sessions from 开发者_如何学Ca java-hibernate app. When I shutdown my java-hibernate application, the oracle sessions remain opened, even if the java process is not seen as running with ps -fea | grep java.

The problem is that this oracle sessions never die, they remain there and the only way to kill them is either manually kill oracle process, restart the oracle instance or restart the unix box where oracle resides.

My java/hibernate app always closes the session with a final statement in the source code, no matter what.

Thanks in advance.


Is difficult to help you without more information, but I thing I can guess. When you open or close sessions using hibernate you probably dont open real oracle sessions. Hibernate may use a pool or control when open or not a real session. So, your problem is not close your java session after each statement but to correctly close and finish hibernate's pool or whatever before kill your app.

Please post more information so i dont have to guess :)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号