Using Spring, what is the recommended approach of loading ApplicationContext in a class where
Servlet Context isn�t available? We have a service layer and all service objects are created through a BusinessServiceFactory. Temporarily I�m using FileSystemXmlApplicationContext, however I need a file system independent solution. I tried to use XmlWebApplicationContext, however it throws an exception(BeanFactory not initialized - call 'refresh' before accessing beans via the context). I called refresh on XmlWebApplicationContext and it throws another exception (Cannot resolve ServletContextResource without ServletContext). Could you please provide me or point me to some example, I couldn�t find it anywhere.
Thanks,
Luciana