I don't see any configuration where the "mysessionFactory" bean is being injected into the sessionFactory field, thus you get the Null exception. Therefore, you need to lookup the bean "mysessionFactory" and set it in the sessionFactory field.
Joined: Jul 30, 2010
Thanks Ran ... got it
subject: how to get session from spring-config.xml