I've been trying to figure out how to add some functionality to Orion's web-app deployment (such as creating required databasestructures and setting up application specific stuff). Instead of sending a multitude of little questions I just ask: how to do it right? It should configurable from application.xml (through init-params), so I need to get application context. It should be invoked automatically, which is done somehow with manifests, I suppose? Any references? Your experiences?