Roberto Tellado 7 Years Ago I work with approach 1, but i have problemas with getCurrentSessionFactory. Throw this exception: No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here. Do you know why? Thanks. Please sign in to reply. Reply as... Cancel