0

Application is a Spring MVC, with hibernate. I am using ehcache as second level cache for hibernate. I am able to cache the data during server startup. But as the data to be cached is very large, so the requirement is to load the data in cache after the application is deployed so that users do not need to wait for application to start. We are looking to use either JMS or asynchronous thread to load data in cache. Please suggest on this.

1 Answer 1

0

This is successfully implemented using Spring JMS. Message was send to the JMS listener at Spring's contextRefreshedEvent. Finally, listener called DAO to load data asynchronously.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.