Java – hibernate – forces container resource cleanup when a transaction completes

After several queries are executed, I get the following message from Hibernate:

HHH000106: Forcing container resource cleanup on transaction completion

Everything seems to be working correctly, but I don't find any explanation for what this message means or what I should do

I am using hibernate / JPA and JTA global transactions

Any ideas?

Solution

(complete xwoker's answer.)

The resources we are talking about are:

>Resultset > declaration

This message occurs because you opened some resources, that is, you did not call its close () method Because of the current connectionreleasemode: these resources become useless, hibernate informs you that it is calling the close () method for you

To avoid this log: call the close () method (on your resultset and statement) before the transaction ends

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>