Skip to content

Atmosphere's Startup Hook: Executing Task after deploy

Jeanfrancois Arcand edited this page Dec 11, 2013 · 1 revision

Sometimes an application needs to execute some task when Atmosphere is deployed and ready to serve request. To achieve such task with Atmosphere, just do:

  AtmosphereResource.getAtmosphereConfig().startupHook(new ApplicationConfig.ShutdownHook() {
       public void startUp() {
            ...
       }  
  });

Step by Step Tutorials

Concepts & Architecture

15 Minutes Tutorial

Advanced Topics

API

Known WebServer Issues

References

External Documentations

githalytics.com alpha

Clone this wiki locally