InterviewSolution
Saved Bookmarks
| 1. |
Is The Session Factory Thread Safe? |
|
Answer» YES, that is many threads can access it concurrently and request for sessions. It HOLDS cached data that has been READ in one unit of work and may be reused in a future unit of work. Good PRACTICE is to create it when the APPLICATION is initialized. Yes, that is many threads can access it concurrently and request for sessions. It holds cached data that has been read in one unit of work and may be reused in a future unit of work. Good practice is to create it when the application is initialized. |
|