Is SessionFactory a thread-safe object?

Như Quỳnh

New member
Is SessionFactory a thread-safe object?
Answer
The SessionFactory is
a thread safe object
and used by all the threads of an application. … You would need one SessionFactory object per database using a separate configuration file. So, if you are using multiple databases, then you would have to create multiple SessionFactory objects.
 

Tìm kiếm

Back
Top