"is hibernate's session thread safe?" Code Answer


it is not intended that implementors be threadsafe. instead each thread/transaction should obtain its own instance from a sessionfactory.

even with this in mind, your behaviour might still not be what you expect, because transactions come into play. you will have to set a proper transaction isolation level. see the configuration guide, hibernate.connection.isolation property.

By Chaudhary on February 19 2022

Answers related to “is hibernate's session thread safe?”

Only authorized users can answer the Search term. Please sign in first, or register a free account.