Community
Participate
Working Groups
See discussion at http://stackoverflow.com/questions/14831926/how-can-i-pre-start-my-rap-application-to-trigger-warmup-right-after-startup/14857692#14857692, we have a RAP application which would benefit from pre-starting certain things when the RAP application is started to have a responsive application when also for the first user visiting the site. So the use case for me is mostly pre-loading some content so that caches are filled up so that users do not have to wait a long time until the page loads for the first time. We currently worked around this by making the initialization independend of the RAP/RWT application and starting it as part of the web-container startup (hosting RAP in a standalone Tomcat).
I agree we should provide a listener for the ApplicationContext lifcycle. I'd suggest to call it ApplicationContextListener, similar to UISessionListener. An instance could be registered in the ApplicationConfiguration.
*** Bug 347822 has been marked as a duplicate of this bug. ***
ApplicationContextListener#beforeDestroy has been added (see bug 370354).