I'm new to hibernate,could you please clarify My doubts.My question is The SessionFactory is thread-safe and can be shared.
so How SessionFactory is shared?Is muti-thread or single-thread object.
raj chiru wrote:I'm new to hibernate,could you please clarify My doubts.My question is The SessionFactory is thread-safe and can be shared.
so How SessionFactory is shared?Is muti-thread or single-thread object.
As the Hibernate JavaDocs say, all implementors of the SessionFactory interface should be threadsafe. It is a heavy weight object and is intended to be created once then shared.