Number Of Page View:100,000+/Months
LOGIN |New User


How can multiple threads access session factory simulteneously to create session instance?

We know that the session factory is thread-safe, so it is okay to use SessionFactory object by many threads to have session from session factory, but I think session is not thread safe and it should be used by one thread at a time, and after use, session has to be flushed and closed.