1.

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.

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.



Discussion

No Comment Found