I want to have some method run, only after my WAR has been deployed to JBoss.
The problem: Currently I am using @PostConstruct to load saved schedules from the DB. The problem is that I am creating instances of the Schedulers from this method, which in turn is starting the Quartz schedulers, which is stopping JBoss from completing the deploy. If there are no schedules to load, my WAR deploys fine, but if there are schedules they are causing the deploy to fail, because JBoss is "waiting" for the schedules to actually complete.
Is there some way to delay the method call until after it is fully deployed? Or alternatively, is it possible to make Async calls on the Server (from the Server code)?