CodaAzzurra/Powertrain

Move the updater logic into a background thread in the webapp proper

jshook opened this issue · 2 comments

This app isn't far from being runnable as a full "webapp" without the need for a main()
Hooking the init() calls for jersey and spawning a background thread would be nice.

For inspiration, perhaps:
http://stackoverflow.com/questions/791986/background-thread-for-a-tomcat-servlet-app

But the Jersey container will be slightly different. I'll research the exact way if needed.

That's a nice idea