Hello,

I want to load an application scoped bean immidiately when the
applcation is loaded (deployed), not when it is first accessed.
In general, I can create the bean in a ServletContextListener:

  public void contextInitialized(ServletContextEvent event) {
    LOG.debug("*** contextInitialized ***");
    ServletContext servletContext = event.getServletContext();
    MasterDataSupplier masterDataSupplier = new MasterDataSupplier();
    servletContext.setAttribute("masterDataSupplier", masterDataSupplier);
  }

But my question is, how do I resolve the managed properties of the
bean? I can use a context-param for a simple string property but
there're complex properties to handle (DAOs managed by Spring).
I think, I have to get the (Sring)VariableResolver somehow and do
the resolving myself. Has anybody done this before?

Regards
Helmut

Reply via email to