0 Replies Latest reply on Jun 19, 2012 9:26 AM by Sergiu Pienar

    Making non-EJB class depend on services

    Sergiu Pienar Apprentice

      Hi,

       

      Using JBoss 7.1.1 Final.

       

      I have a servlet which is using the init() method to process some business logic.

       

      My question is, how can I make the init method wait for everything to be initialized ( I need some SessionFactories to be initialized) before starting ?

       

      Please keep in mind that I wouldn't want to use the @Singleton, @Startup, @PostConstruct approach.

       

       

      Thank you.