This content has been marked as final.
Show 2 replies
-
1. Re: Startup Class in JBoss 7
jnakatabe Mar 5, 2012 4:04 PM (in response to erg144)Couldn't you just annotate your initializer class with Startup + Singleton + PostConstruct?
-
2. Re: Startup Class in JBoss 7
david.salter Mar 7, 2012 4:56 PM (in response to erg144)A simpler, maybe less elegant solution, could be to create a servlet that loads at startup and perform initialization there.jboss 7 startup class
If you're using an appropriate version of Java EE (EJB 3.1) then Josh's suggestion is a good one as this will ensure that initialization is performed before requests can be made to your EJBs.