Q:

Possible values of current_session_context_class property in hibernate and uses

I  wanted to know all possible values that can be used with current_session_context_class property in cfg.xml file? I have an idea of thread value that makes the session context to relate per thread, like propertyname="current_session_context_class" thread. 

A:

For Hibernate 4 valid values include:

jta, thread, and managed (which are aliases for implementations delivered with Hibernate). 
full class name with package to any other custom class that
implements org.hibernate.context.spi.CurrentSessionContext

This is told in Hibernate manual - 2.3. Contextual sessions

