I need to instantiate a Java object after all resources are loaded but before my index.xhtml is rendered. This will be a configuration bean, or application context. I have created a Startup Servlet, and set the tag to 1, however; this runs before my .xml files are loaded which is where my configuration is located. Is there a standard or 'best-practices' way of accomplishing this?
My objective is to unmarshall the data using java.xml.bind the location of my xml file is WebContent/WEB-INF/configuration.xml. This operation will be done in a Singleton class which will serve as my application context.