EJBs can be annotated with @Startup so that they are immediately instantiated when the (web) app is deployed.
Is there a similiar annotation for CDI? I cannot find any anything in the spec for CDI 1.1. Any hint is appreciated.
You can define an observer method for @Initialized(ApplicationScoped.class) ServletContext. Weld will then instantiate your component and call the observer method on application startup.
Retrieving data ...