Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Hibernate%20Interview%20Questions%20and%20Answers

Question: What should SessionFactory be placed so that it can be easily accessed?
Answer: As far as it is compared to J2EE environment, if the SessionFactory is placed in JNDI then it can be easily accessed and shared between different threads and various components that are hibernate aware. You can set the SessionFactory to a JNDI by configuring a property hibernate.session_factory_name in the hibernate.properties file.
Is it helpful? Yes No

Most helpful rated by users:

©2024 WithoutBook