kprevas/ronin — pull request #46 by roxchkplusony (2011-11-11 05:18:51+00:00)
Title: Start H2 before Jetty

Our RoninConfig pulls up beans via Tosa in the constructor which fails if the db doesn't exist. The second run of the server then wakes up to a created db and startup succeeds (bootstrap problem). I tried a delayed execution of the code in that constructor and found that the code then succeeds as well. So I went digging and found DevServer, where we start H2 and execute the statements in the .ddl after starting Jetty. Which is fine for web requests, but didn't work when we were making H2 requests in the Jetty startup. So, it seems correct for this scenario to start H2 (and run the statements) before Jetty startup.