What is a sessionfactory? Is it a thread-safe object?



What is a sessionfactory? Is it a thread-safe object?..

Answer / Bijender Kumar

SessionFactory is an interface in Hibernate that creates Session objects, which are used to interact with the database. It is not a thread-safe object and should be accessed through the built-in ServiceRegistry or StandardServiceRegistryBuilder.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Advanced Java Interview Questions

Explain bind(), rebind(), unbind() and lookup() methods?

1 Answers  


important features of java which differenciate it from c++

3 Answers  


What are the JSP implicit objects ?

1 Answers   eMids,


What is the difference between RMI and Socket?

2 Answers  


whats is mean by class.forName() whats the return type of class

3 Answers   SolutionNET,


What’s jboss jbpm?

1 Answers  


String is immutable.it is true String can be change to mutable How?

6 Answers   IBM, Professional Access, TCS,


What modifiers may be used with an interface declaration?

1 Answers  


Difference between new operator and class.forname().newinstance()?

1 Answers  


what is a Daemon Thread?

2 Answers  


In real time project when will we use Abstract class. and what are the difference between abstract and interface.

6 Answers   DELL, FCS, Polaris, Tanla Solutions, TCS,


whats is mean by filter?

1 Answers   SolutionNET,


Categories