org.springframework.orm.hibernate3.support.OpenSessionInViewFilter
SessionHolder seesionh=(SessionHolder)
TransactionSynchronizationManager
.getResource(
org.springframework.context.ApplicationContextAware().getBean("sessionFactory"));
Session s=(Session)seesionh.getSession();//当前session
相当于org.springframework.orm.hibernate.SessionFactoryUtils.getSession(sessionFactory)
http://www.jarvana.com/jarvana/view/org/springframework/spring/1.2.9/spring-1.2.9-sources.jar!/org/springframework/orm/hibernate/support/OpenSessionInViewFilter.java?format=ok
http://www.jarvana.com/jarvana/view/org/springframework/spring/1.2.9/spring-1.2.9-sources.jar!/org/springframework/orm/hibernate/SessionFactoryUtils.java?format=ok