How many SessionFactory and Session objects are created ?
Javasearch.buggybread.com

Search Interview Questions


 More than 3000 questions in repository.
 There are more than 900 unanswered questions.
Click here and help us by providing the answer.
 Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company      Label / Company / Text

   



Interview Questions and Answers

 Q1. How many SessionFactory and Session objects are created ?Java EE
Ans. Single SessionFactory object and multiple session objects for opening different session. Hibernate creates new Session object per thread.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     hibernate   sessionfactory hibernate   session hibernate


Related Questions

  What is session tracking and how do you track a user session in servlets?
  what is the use of cookie and session ? and What is the difference between them ?
  What are different types of cookies ?
  Please specify in what sequence the objects of following classes will be created ?

Session , SessionFactory, Query , Configuration
  What is a cookie ?
  What is the use of HTTPSession in relation to http protocol ?
  Why using cookie to store session info is a better idea than just using session info in the request ?
  http protocol is by default ... ?
 What does the following exception means

org.hibernate.LazyInitializationException: could not initialize proxy - no Session



Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked: