I found out that the Hibernate factory session is called thread safe. Can someone articulate how it acts as thread safe in a web application and how all methods are synchronized or something else?
The internal state of the SessionFactory is unchanged. Most concurrency issues are due to sharing objects with volatile state. When an object is immutable, its internal state is set at creation and cannot be changed. So many threads can access it at the same time and request sessions.
However, Session is not a streaming file; you cannot share it between streams.