4 Replies Latest reply on Jan 7, 2011 11:31 AM by luis.planella

    How to make sure the web application is invoked after singletons are initialized?

    luis.planella

      Hi all.

      I'm working on an application on JBossAS 6, where the web layer uses Spring to lookup services (EJBs).

      We plan to easily deploy either everything as a single web app with EJBs (3.1) or split into a separate web using remote EJB interfaces.

      When the web app is started, it looks up EJBs.

      However, the web layer is initialized before all EJBs are deployed, resulting in errors.

      How to make sure that the servlet context is initialized only after the EJBs are deployed?

      Tks.