Use a DispatcherListener to get hooked up to event when Struts2 Dispatcher get initalized and destroy. This is a usefull place to associate customizable components like ConfigurationManager to a Dispatcher.
Example
static { Dispatcher.addDispatcherListener(new DispatcherListener() { public void dispatcherInitialized(Dispatcher du) { // do something to Dispatcher after it is initialized eg. du.setConfigurationManager(....); } public void dispatcherDestroyed(Dispatcher du) { // do some cleanup after Dispatcher is destroyed. } }); }