I\'m building a simple Tomcat webapp that\'s using Spring Data and Hibernate. There\'s one end point that does a lot of work, so I want to offload the work to a background t
What happens is, probably, you have transaction on your DAO piece of code and Spring is closing the session on transaction close.
You should squeeze all your business logic into single transaction.
You can inject SessionFactory into your code and use SessionFactory.openSession() method.
The problem is, that you will have to manage your transactions.