I have a legacy code I am using which requires initiation which is usually done in Servlet init method.
getProfile method reads the config file and stores the values in the static variable. The idea is that this is done only onceCode:java.io.InputStream stream = getServletContext().getResourceAsStream( "web-inf/conf/Profile.xml"); ProfileImpl.getProfile(stream);
What is the best way to call this code when using Spring?


Reply With Quote