PostConstruct , biz. , bean , bean, , @PostConstruct, biz-.
@PostConstruct , bean . Stateless beans . Stateful beans .
- , Java EE, .
Java EE 6 @Startup @Singleton EJB, @PostConstruct.
Java EE 5 ServletContextListener -. ServletContextListener EJB, .
However, what could be a more important question, where do you want to download these application settings? If you are dealing with a non-clustered JVM configuration with a single cluster, you probably want to load them into a Singleton of some type. In Java EE 5– you will have to implement the singleton design template yourself or use the @Singleton EJB type in EE 6.
Chase source
share